fixed windows mmap code

This commit is contained in:
Roman Arutyunyan 2013-06-13 00:43:42 +04:00
parent 0c35b73152
commit cbd7a71723

View file

@ -228,11 +228,11 @@ static void *
ngx_rtmp_mp4_mmap(ngx_fd_t fd, size_t size, off_t offset, ngx_fd_t *extra) ngx_rtmp_mp4_mmap(ngx_fd_t fd, size_t size, off_t offset, ngx_fd_t *extra)
{ {
void *data; void *data;
LARGE_INTEGER size; LARGE_INTEGER lsize;
size.QuadPart = size; lsize.QuadPart = size;
if (SetFilePointerEx(fd, size, NULL, FILE_BEGIN) == 0) { if (SetFilePointerEx(fd, lsize, NULL, FILE_BEGIN) == 0) {
return NULL; return NULL;
} }