fix(misc): fix #343 download attachment type error

This commit is contained in:
Changhua
2025-03-10 22:09:48 +08:00
parent 56708ee512
commit 1a5f782819
3 changed files with 9 additions and 5 deletions
+1 -1
View File
@@ -186,7 +186,7 @@ int download_attachment(uint64_t id, const fs::path &thumb, const fs::path &extr
QWORD pChatMsg = NewChatMsg(buff);
GetChatMgr();
GetMgrByPrefixLocalId(l.QuadPart, pChatMsg);
QWORD type = util::get_qword(reinterpret_cast<QWORD>(buff) + 0x38);
QWORD type = util::get_dword(reinterpret_cast<QWORD>(buff) + 0x38);
fs::path save_path, thumb_path;
switch (type) {
+2 -2
View File
@@ -51,7 +51,7 @@ END
//
VS_VERSION_INFO VERSIONINFO
FILEVERSION 39,4,1,0
FILEVERSION 39,4,2,0
PRODUCTVERSION 3,9,12,17
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
@@ -69,7 +69,7 @@ BEGIN
BEGIN
VALUE "CompanyName", "WeChatFerry"
VALUE "FileDescription", "WeChatFerry"
VALUE "FileVersion", "39.4.1.0"
VALUE "FileVersion", "39.4.2.0"
VALUE "InternalName", "spy.dll"
VALUE "LegalCopyright", "Copyright (C) 2023"
VALUE "OriginalFilename", "spy.dll"