Skip to content

Commit

Permalink
print error code as dec in addition to hex in LogLastError()
Browse files Browse the repository at this point in the history
  • Loading branch information
kjk committed May 29, 2024
1 parent 4c47da9 commit 1ed1418
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/WinUtil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ void LogLastError(DWORD err) {
if (msg == nullptr) {
msg = (TempStr)"";
}
logf("LogLastError: 0x%x '%s'\n", (int)err, msg);
logf("LogLastError: 0x%x (%d) '%s'\n", (int)err, (int)err, msg);
}

void DbgOutLastError(DWORD err) {
Expand Down

0 comments on commit 1ed1418

Please sign in to comment.