mirror of
https://github.com/zotanmew/nginx-rtmp-module.git
synced 2024-05-16 08:41:08 +02:00
fixed windows file mapping protection
This commit is contained in:
parent
47cdfc4b67
commit
388d735460
|
@ -248,7 +248,7 @@ ngx_rtmp_mp4_mmap(ngx_fd_t fd, size_t size, off_t offset, ngx_fd_t *extra)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
data = MapViewOfFile(*extra, FILE_MAP_WRITE, 0, 0, 0);
|
||||
data = MapViewOfFile(*extra, FILE_MAP_READ, 0, 0, 0);
|
||||
|
||||
if (data == NULL) {
|
||||
CloseHandle(*extra);
|
||||
|
|
Loading…
Reference in a new issue