mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2024-11-22 18:50:20 +08:00
This commit is contained in:
parent
f24802d0e4
commit
3e7e1a317e
@ -141,7 +141,9 @@ static std::shared_ptr<char> getSharedMmap(const string &file_path, int64_t &fil
|
|||||||
return nullptr;
|
return nullptr;
|
||||||
}
|
}
|
||||||
|
|
||||||
file_size = ::GetFileSize(hfile, NULL);
|
LARGE_INTEGER FileSize;
|
||||||
|
GetFileSizeEx(hfile, &FileSize); //GetFileSize函数的拓展,可用于获取大于4G的文件大小
|
||||||
|
file_size = FileSize.QuadPart;
|
||||||
|
|
||||||
auto hmapping = ::CreateFileMapping(hfile, NULL, PAGE_READONLY, 0, 0, NULL);
|
auto hmapping = ::CreateFileMapping(hfile, NULL, PAGE_READONLY, 0, 0, NULL);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user