mirror of
https://github.com/zotanmew/nginx-rtmp-module.git
synced 2024-05-15 08:21:09 +02:00
fixed windows file mapping protection
This commit is contained in:
parent
470c3effc8
commit
47cdfc4b67
|
@ -240,7 +240,7 @@ ngx_rtmp_mp4_mmap(ngx_fd_t fd, size_t size, off_t offset, ngx_fd_t *extra)
|
|||
return NULL;
|
||||
}
|
||||
|
||||
*extra = CreateFileMapping(fd, NULL, PAGE_READWRITE,
|
||||
*extra = CreateFileMapping(fd, NULL, PAGE_READONLY,
|
||||
(u_long) ((off_t) size >> 32),
|
||||
(u_long) ((off_t) size & 0xffffffff),
|
||||
NULL);
|
||||
|
|
Loading…
Reference in a new issue