fixed windows file mapping protection

This commit is contained in:
Roman Arutyunyan 2013-06-13 01:38:34 +04:00
parent 470c3effc8
commit 47cdfc4b67

View file

@ -240,7 +240,7 @@ ngx_rtmp_mp4_mmap(ngx_fd_t fd, size_t size, off_t offset, ngx_fd_t *extra)
return NULL; 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 >> 32),
(u_long) ((off_t) size & 0xffffffff), (u_long) ((off_t) size & 0xffffffff),
NULL); NULL);