Skip to content

Commit

Permalink
Windows fixed their swprintf? amazing
Browse files Browse the repository at this point in the history
  • Loading branch information
todbot committed May 24, 2022
1 parent 2f60f91 commit 90e4bae
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions hidapitester.c
Original file line number Diff line number Diff line change
Expand Up @@ -253,11 +253,7 @@ int main(int argc, char* argv[])
msginfo("Set usage to 0x%04hX (%d)\n", usage,usage);
}
else if( cmd == CMD_SERIALNUMBER ) {
#ifdef _WIN32 // omg windows
swprintf( serial_wstr, sizeof(serial_wstr), L"%S", optarg); // convert to wchar_t*
#else
swprintf( serial_wstr, sizeof(serial_wstr), L"%s", optarg); // convert to wchar_t*
#endif
}
else if( cmd == CMD_LIST ||
cmd == CMD_LIST_USAGES ||
Expand Down

0 comments on commit 90e4bae

Please sign in to comment.