diff options
author | George Hazan <george.hazan@gmail.com> | 2023-07-03 19:31:19 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-07-03 19:31:19 +0300 |
commit | f352c9945ba1ef60356c9e4b9284b2d34cd39bd3 (patch) | |
tree | a7d931b8b3417d7813eb87d2a45104b69e51c9d3 /protocols | |
parent | f3bb857b2c0b2fc258bb79c48b79fa086dca68fb (diff) |
fixes #3568 (crash in 32-bit TDLIB, all we need is just hard code 0x28 as sizeof(basic_info), regardless SDK version)
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/Telegram/tdlib/td/tdutils/td/utils/port/FileFd.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/protocols/Telegram/tdlib/td/tdutils/td/utils/port/FileFd.cpp b/protocols/Telegram/tdlib/td/tdutils/td/utils/port/FileFd.cpp index bd5795d629..bb65daddb9 100644 --- a/protocols/Telegram/tdlib/td/tdutils/td/utils/port/FileFd.cpp +++ b/protocols/Telegram/tdlib/td/tdutils/td/utils/port/FileFd.cpp @@ -599,9 +599,7 @@ Result<Stat> FileFd::stat() const { #ifdef _WIN64 auto status = GetFileInformationByHandleEx(get_native_fd().fd(), FileBasicInfo, &basic_info, sizeof(basic_info)); #else - BOOL bIsWow64 = FALSE; - IsWow64Process(GetCurrentProcess(), &bIsWow64); - auto status = GetFileInformationByHandleEx(get_native_fd().fd(), FileBasicInfo, &basic_info, bIsWow64 ? 0x28 : 0x24); + auto status = GetFileInformationByHandleEx(get_native_fd().fd(), FileBasicInfo, &basic_info, 0x28); #endif if (!status) { return OS_ERROR("Get FileBasicInfo failed"); |