From 118bc2fb51fcee353ae0281a7b6dde69b76f7a33 Mon Sep 17 00:00:00 2001 From: Frank Morgner Date: Tue, 12 May 2015 20:00:51 +0200 Subject: [PATCH] fixed compiling without LOG --- virtualsmartcard/src/pcsclite-vpcd/error.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/virtualsmartcard/src/pcsclite-vpcd/error.c b/virtualsmartcard/src/pcsclite-vpcd/error.c index 6f2bb34..cb372f5 100644 --- a/virtualsmartcard/src/pcsclite-vpcd/error.c +++ b/virtualsmartcard/src/pcsclite-vpcd/error.c @@ -27,11 +27,12 @@ #include "strlcpycat.h" #ifdef NO_LOG -PCSC_API char* pcsc_stringify_error(const long pcscError) +PCSC_API char* pcsc_stringify_error(const LONG pcscError) { static char strError[] = "0x12345678"; + unsigned long error = pcscError; - snprintf(strError, sizeof(strError), "0x%08lX", pcscError); + snprintf(strError, sizeof(strError), "0x%08lX", error); return strError; }