Fixed NULL pointer dereference.
This commit is contained in:
parent
fb5d20f338
commit
b7d5bf49f8
@ -963,7 +963,8 @@ WINSCARDAPI LONG WINAPI PCSC_SCardListReaderGroupsW(SCARDCONTEXT hContext,
|
||||
/* FIXME: unicode conversion */
|
||||
status = (LONG) g_PCSC.pfnSCardListReaderGroups(hContext, (LPSTR) mszGroups, &pcsc_cchGroups);
|
||||
status = PCSC_MapErrorCodeToWinSCard(status);
|
||||
*pcchGroups = (DWORD) pcsc_cchGroups;
|
||||
if (pcchGroups)
|
||||
*pcchGroups = (DWORD) pcsc_cchGroups;
|
||||
|
||||
if (!PCSC_UnlockCardContext(hContext))
|
||||
return SCARD_E_INVALID_HANDLE;
|
||||
|
Loading…
Reference in New Issue
Block a user