From 5d7c1d1d48e1e5d1721e901017b13bf06fe6519a Mon Sep 17 00:00:00 2001 From: ttttupup Date: Tue, 14 Nov 2023 20:38:17 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20ocr=E4=BF=AE=E5=A4=8D=20=20closed=20issu?= =?UTF-8?q?es=20#305=20=20#321?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/manager.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/manager.cc b/src/manager.cc index 04f7a0a..630060f 100644 --- a/src/manager.cc +++ b/src/manager.cc @@ -1246,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";