Fix compilation warnings on Windows
This commit is contained in:
@@ -19,7 +19,7 @@ namespace {
|
|||||||
std::string error_msg(const char* method, LONG result) {
|
std::string error_msg(const char* method, LONG result) {
|
||||||
char msg[ERR_MSG_MAX_LEN];
|
char msg[ERR_MSG_MAX_LEN];
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
LPVOID lpMsgBuf;
|
LPTSTR lpMsgBuf;
|
||||||
FormatMessageA(FORMAT_MESSAGE_ALLOCATE_BUFFER |
|
FormatMessageA(FORMAT_MESSAGE_ALLOCATE_BUFFER |
|
||||||
FORMAT_MESSAGE_FROM_SYSTEM |
|
FORMAT_MESSAGE_FROM_SYSTEM |
|
||||||
FORMAT_MESSAGE_IGNORE_INSERTS,
|
FORMAT_MESSAGE_IGNORE_INSERTS,
|
||||||
@@ -43,7 +43,7 @@ namespace {
|
|||||||
"%s error: %s(0x%.8x)",
|
"%s error: %s(0x%.8x)",
|
||||||
method,
|
method,
|
||||||
pcsc_stringify_error(result),
|
pcsc_stringify_error(result),
|
||||||
result);
|
result);
|
||||||
#else
|
#else
|
||||||
snprintf(msg,
|
snprintf(msg,
|
||||||
ERR_MSG_MAX_LEN,
|
ERR_MSG_MAX_LEN,
|
||||||
|
|||||||
Reference in New Issue
Block a user