mdbx: fix mdbx_filesize() for Windows.

This commit is contained in:
Leo Yuriev 2017-05-25 09:26:03 +03:00
parent 15e2a45425
commit 5519d568f0

View File

@ -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;