Skip to content

Commit

Permalink
go/sppark.go: fix the fallback for FormatMessageA.
Browse files Browse the repository at this point in the history
  • Loading branch information
dot-asm committed Aug 6, 2024
1 parent c55ec2d commit 65d71da
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions go/sppark.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,15 @@ package sppark
// } else {
// static char buf[24] = "WIN32 Error #0x";
// msg = buf + 15;
// do {
// *msg++ = hex_from_nibble(win_err>>4);
// *msg++ = hex_from_nibble(win_err);
// } while (win_err >>= 8);
// for (int i = 32; i -= 8;) {
// unsigned int hex;
// if ((hex = win_err>>i)) {
// *msg++ = hex_from_nibble(hex>>4);
// *msg++ = hex_from_nibble(hex);
// }
// }
// *msg++ = hex_from_nibble(win_err>>4);
// *msg++ = hex_from_nibble(win_err);
// *msg = '\0';
// toGoString(err, buf);
// }
Expand Down

0 comments on commit 65d71da

Please sign in to comment.