SCardFreeMemory non const argument.

This commit is contained in:
Armin Novak 2020-02-17 10:53:46 +01:00
parent 37e850cb24
commit 2acce6214c
2 changed files with 4 additions and 4 deletions

View File

@ -681,7 +681,7 @@ extern "C"
WINSCARDAPI LONG WINAPI SCardForgetCardTypeA(SCARDCONTEXT hContext, LPCSTR szCardName);
WINSCARDAPI LONG WINAPI SCardForgetCardTypeW(SCARDCONTEXT hContext, LPCWSTR szCardName);
WINSCARDAPI LONG WINAPI SCardFreeMemory(SCARDCONTEXT hContext, LPCVOID pvMem);
WINSCARDAPI LONG WINAPI SCardFreeMemory(SCARDCONTEXT hContext, LPVOID pvMem);
WINSCARDAPI HANDLE WINAPI SCardAccessStartedEvent(void);
@ -959,7 +959,7 @@ typedef LONG(WINAPI* fnSCardSetCardTypeProviderNameW)(SCARDCONTEXT hContext, LPC
typedef LONG(WINAPI* fnSCardForgetCardTypeA)(SCARDCONTEXT hContext, LPCSTR szCardName);
typedef LONG(WINAPI* fnSCardForgetCardTypeW)(SCARDCONTEXT hContext, LPCWSTR szCardName);
typedef LONG(WINAPI* fnSCardFreeMemory)(SCARDCONTEXT hContext, LPCVOID pvMem);
typedef LONG(WINAPI* fnSCardFreeMemory)(SCARDCONTEXT hContext, LPVOID pvMem);
typedef HANDLE(WINAPI* fnSCardAccessStartedEvent)(void);

View File

@ -34,7 +34,7 @@
#include "smartcard_inspect.h"
static INIT_ONCE g_Initialized = INIT_ONCE_STATIC_INIT;
static PSCardApiFunctionTable g_SCardApi = NULL;
static const SCardApiFunctionTable* g_SCardApi = NULL;
#define TAG WINPR_TAG("smartcard")
@ -296,7 +296,7 @@ WINSCARDAPI LONG WINAPI SCardForgetCardTypeW(SCARDCONTEXT hContext, LPCWSTR szCa
SCARDAPI_STUB_CALL_LONG(SCardForgetCardTypeW, hContext, szCardName);
}
WINSCARDAPI LONG WINAPI SCardFreeMemory(SCARDCONTEXT hContext, LPCVOID pvMem)
WINSCARDAPI LONG WINAPI SCardFreeMemory(SCARDCONTEXT hContext, LPVOID pvMem)
{
SCARDAPI_STUB_CALL_LONG(SCardFreeMemory, hContext, pvMem);
}