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

View File

@ -204,9 +204,9 @@ WeChatFerry
## 版本更新
### v39.4.1
### v39.4.2
* 修复乱码问题
* 修复附件下载类型错误
<details><summary>点击查看更多</summary>
@ -218,6 +218,10 @@ WeChatFerry
* `y` 是 `WeChatFerry` 的版本,从 0 开始
* `z` 是各客户端的版本,从 0 开始
### v39.4.1
* 修复乱码问题。
### v39.4.0
* 重构代码,适配 `3.9.12.17`。

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) {

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"