mirror of
https://github.com/ttttupup/wxhelper.git
synced 2024-11-23 18:59:24 +08:00
commit
8b6e2d7160
@ -1165,8 +1165,9 @@ INT64 Manager::SendApplet(const std::wstring &recv_wxid,
|
|||||||
common::VectorInner *list = (common::VectorInner *)temp;
|
common::VectorInner *list = (common::VectorInner *)temp;
|
||||||
|
|
||||||
prototype::WeChatString *member = BuildWechatString(recv_wxid);
|
prototype::WeChatString *member = BuildWechatString(recv_wxid);
|
||||||
|
#ifdef _DEBUG
|
||||||
list->head = reinterpret_cast<UINT64>(member);
|
list->head = reinterpret_cast<UINT64>(member);
|
||||||
|
#endif
|
||||||
list->start = reinterpret_cast<UINT64>(member);
|
list->start = reinterpret_cast<UINT64>(member);
|
||||||
list->finsh = reinterpret_cast<UINT64>(member) + 0x20;
|
list->finsh = reinterpret_cast<UINT64>(member) + 0x20;
|
||||||
list->end = reinterpret_cast<UINT64>(member) + 0x20;
|
list->end = reinterpret_cast<UINT64>(member) + 0x20;
|
||||||
@ -1245,8 +1246,8 @@ INT64 Manager::DoOCRTask(const std::wstring &img_path, std::string &result) {
|
|||||||
reinterpret_cast<UINT64>(buff),reinterpret_cast<UINT64>(&unkonwn));
|
reinterpret_cast<UINT64>(buff),reinterpret_cast<UINT64>(&unkonwn));
|
||||||
INT64 number = *(INT64 *)(buff + 0x8);
|
INT64 number = *(INT64 *)(buff + 0x8);
|
||||||
if (number > 0) {
|
if (number > 0) {
|
||||||
INT64 header = list->start;
|
INT64 header = *(INT64 *)(buff);
|
||||||
for (unsigned int i = 0; i < number - 1; i++) {
|
for (unsigned int i = 0; i < number; i++) {
|
||||||
INT64 content = *(INT64 *)header;
|
INT64 content = *(INT64 *)header;
|
||||||
result += Utils::ReadWstringThenConvert(content + 0x28);
|
result += Utils::ReadWstringThenConvert(content + 0x28);
|
||||||
result += "\r\n";
|
result += "\r\n";
|
||||||
|
Loading…
Reference in New Issue
Block a user