Skip to content

Commit ca9b0ba

Browse files
committed
Fix compilation warnings on Windows
1 parent 7380a20 commit ca9b0ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/common.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ namespace {
1919
std::string error_msg(const char* method, LONG result) {
2020
char msg[ERR_MSG_MAX_LEN];
2121
#ifdef _WIN32
22-
LPVOID lpMsgBuf;
22+
LPTSTR lpMsgBuf;
2323
FormatMessageA(FORMAT_MESSAGE_ALLOCATE_BUFFER |
2424
FORMAT_MESSAGE_FROM_SYSTEM |
2525
FORMAT_MESSAGE_IGNORE_INSERTS,
@@ -43,7 +43,7 @@ namespace {
4343
"%s error: %s(0x%.8x)",
4444
method,
4545
pcsc_stringify_error(result),
46-
result);
46+
result);
4747
#else
4848
snprintf(msg,
4949
ERR_MSG_MAX_LEN,

0 commit comments

Comments
 (0)