Skip to content

Commit

Permalink
Convert filename to UTF8 in query string (fixes namazso#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
namazso committed Jul 24, 2023
1 parent 07faf1b commit 4b388d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions OpenHashTab/virustotal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ std::list<vt::Result> vt::Query(const std::list<FileHashTask*>& files, size_t al
"autostart_location": "",
"autostart_entry": "",
"hash": "%s",
"image_path": "%S",
"image_path": "%s",
"creation_datetime": "%04u-%02u-%02u %02u:%02u:%02u"
})",
hash,
h->GetDisplayName().c_str(),
utl::WideToUTF8(h->GetDisplayName().c_str()).c_str(),
st.wYear,
st.wMonth,
st.wDay,
Expand Down

0 comments on commit 4b388d2

Please sign in to comment.