From eb0357c9a571541c984aef03efaacd6b39ac7409 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 17 Jun 2023 16:56:59 +0300 Subject: data alignment fix --- protocols/Telegram/tdlib/td/tdutils/td/utils/port/FileFd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'protocols/Telegram/tdlib/td') 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 a7ebf057e8..e1d78cdc25 100644 --- a/protocols/Telegram/tdlib/td/tdutils/td/utils/port/FileFd.cpp +++ b/protocols/Telegram/tdlib/td/tdutils/td/utils/port/FileFd.cpp @@ -596,7 +596,7 @@ Result FileFd::stat() const { Stat res; FILE_BASIC_INFO basic_info; - auto status = GetFileInformationByHandleEx(get_native_fd().fd(), FileBasicInfo, &basic_info, sizeof(basic_info)); + auto status = GetFileInformationByHandleEx(get_native_fd().fd(), FileBasicInfo, &basic_info, 0x24); if (!status) { return OS_ERROR("Get FileBasicInfo failed"); } -- cgit v1.2.3