Skip to content

Commit

Permalink
Merge pull request #2 from adeliktas/main
Browse files Browse the repository at this point in the history
fixed format for guid missmatch
  • Loading branch information
SamuelTulach authored Apr 11, 2024
2 parents 0832442 + bdcfcd5 commit 85f9ef4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion UnityPdb/UnityPdb/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ bool utils::load_file_to_memory(const std::string& file_path, std::vector<uint8_

void utils::guid_to_string(const GUID guid, char* output)
{
wsprintfA(output, "%x%x%x%x%x%x%x%x%x%x%x",
wsprintfA(output, "%08X%04X%04X%02X%02X%02X%02X%02X%02X%02X%02X",
guid.Data1, guid.Data2, guid.Data3,
guid.Data4[0], guid.Data4[1], guid.Data4[2], guid.Data4[3],
guid.Data4[4], guid.Data4[5], guid.Data4[6], guid.Data4[7]);
Expand Down

0 comments on commit 85f9ef4

Please sign in to comment.