diff --git a/src/manager.cc b/src/manager.cc index 8140466..630060f 100644 --- a/src/manager.cc +++ b/src/manager.cc @@ -1165,8 +1165,9 @@ INT64 Manager::SendApplet(const std::wstring &recv_wxid, common::VectorInner *list = (common::VectorInner *)temp; prototype::WeChatString *member = BuildWechatString(recv_wxid); - + #ifdef _DEBUG list->head = reinterpret_cast(member); + #endif list->start = reinterpret_cast(member); list->finsh = reinterpret_cast(member) + 0x20; list->end = reinterpret_cast(member) + 0x20; @@ -1245,8 +1246,8 @@ INT64 Manager::DoOCRTask(const std::wstring &img_path, std::string &result) { reinterpret_cast(buff),reinterpret_cast(&unkonwn)); INT64 number = *(INT64 *)(buff + 0x8); if (number > 0) { - INT64 header = list->start; - for (unsigned int i = 0; i < number - 1; i++) { + INT64 header = *(INT64 *)(buff); + for (unsigned int i = 0; i < number; i++) { INT64 content = *(INT64 *)header; result += Utils::ReadWstringThenConvert(content + 0x28); result += "\r\n";