Skip to content

Commit

Permalink
Fix ExtractZipW
Browse files Browse the repository at this point in the history
  • Loading branch information
doyaGu committed Jul 17, 2024
1 parent a329a41 commit fb6dee5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/PathUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -261,9 +261,8 @@ namespace utils {
return false;
}

char dp[1024];
Utf16ToAnsi(dest.c_str(), dp, 1024);
if (zip_stream_extract(buf, sz, dp, nullptr, nullptr) < 0)
std::string destPath = Utf16ToUtf8(dest);
if (zip_stream_extract(buf, sz, destPath.c_str(), nullptr, nullptr) < 0)
return false;

return true;
Expand Down

0 comments on commit fb6dee5

Please sign in to comment.