mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-20 05:38:20 +08:00
mdbx: fix mdbx_filesize() for Windows.
This commit is contained in:
parent
15e2a45425
commit
5519d568f0
@ -552,7 +552,7 @@ int mdbx_filesize(mdbx_filehandle_t fd, uint64_t *length) {
|
||||
BY_HANDLE_FILE_INFORMATION info;
|
||||
if (!GetFileInformationByHandle(fd, &info))
|
||||
return mdbx_get_errno_checked();
|
||||
*length = info.nFileSizeLow | (uint64_t)info.nFileIndexHigh << 32;
|
||||
*length = info.nFileSizeLow | (uint64_t)info.nFileSizeHigh << 32;
|
||||
#else
|
||||
struct stat st;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user