From 1a5f782819cb0c6ce1cb09cee774c028c78991b2 Mon Sep 17 00:00:00 2001 From: Changhua Date: Mon, 10 Mar 2025 22:09:48 +0800 Subject: [PATCH] fix(misc): fix #343 download attachment type error --- README.MD | 8 ++++++-- WeChatFerry/spy/misc_manager.cpp | 2 +- WeChatFerry/spy/spy.rc | 4 ++-- 3 files changed, 9 insertions(+), 5 deletions(-) diff --git a/README.MD b/README.MD index 741c9fa..0722242 100644 --- a/README.MD +++ b/README.MD @@ -204,9 +204,9 @@ WeChatFerry ## 版本更新 -### v39.4.1 +### v39.4.2 -* 修复乱码问题。 +* 修复附件下载类型错误。
点击查看更多 @@ -218,6 +218,10 @@ WeChatFerry * `y` 是 `WeChatFerry` 的版本,从 0 开始 * `z` 是各客户端的版本,从 0 开始 +### v39.4.1 + +* 修复乱码问题。 + ### v39.4.0 * 重构代码,适配 `3.9.12.17`。 diff --git a/WeChatFerry/spy/misc_manager.cpp b/WeChatFerry/spy/misc_manager.cpp index fa968c4..5db4fbc 100644 --- a/WeChatFerry/spy/misc_manager.cpp +++ b/WeChatFerry/spy/misc_manager.cpp @@ -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(buff) + 0x38); + QWORD type = util::get_dword(reinterpret_cast(buff) + 0x38); fs::path save_path, thumb_path; switch (type) { diff --git a/WeChatFerry/spy/spy.rc b/WeChatFerry/spy/spy.rc index 42d3264..8370771 100644 --- a/WeChatFerry/spy/spy.rc +++ b/WeChatFerry/spy/spy.rc @@ -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"