summaryrefslogtreecommitdiff
path: root/protocols/Telegram/tdlib/td
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Telegram/tdlib/td')
-rw-r--r--protocols/Telegram/tdlib/td/tdutils/td/utils/port/FileFd.cpp4
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");