Skip to content

Commit

Permalink
pcsc_scan: use LANG_USER_DEFAULT on Windows
Browse files Browse the repository at this point in the history
LANG_USER_DEFAULT is a predefined value: The language of the current user.
  • Loading branch information
LudovicRousseau committed Jan 8, 2024
1 parent 71e0063 commit a0bf041
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pcsc_scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ const char *pcsc_stringify_error(DWORD rv)
if (! FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM,
NULL,
rv,
MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), // default language
LANG_USER_DEFAULT,
buffer,
sizeof buffer,
NULL))
Expand Down

0 comments on commit a0bf041

Please sign in to comment.