mirror of
https://github.com/zotanmew/nginx-rtmp-module.git
synced 2024-05-31 21:59:32 +02:00
fixed windows mmap code
This commit is contained in:
parent
0c35b73152
commit
cbd7a71723
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue