Fixed #6821: _stricmp does not like NULL strings
This commit is contained in:
parent
e2fd9db0b5
commit
7b211e5258
@ -1445,7 +1445,10 @@ static LONG WINAPI PCSC_SCardGetStatusChange_Internal(SCARDCONTEXT hContext, DWO
|
|||||||
{
|
{
|
||||||
if (!g_PnP_Notification)
|
if (!g_PnP_Notification)
|
||||||
{
|
{
|
||||||
if (0 == _stricmp(rgReaderStates[i].szReader, SMARTCARD_PNP_NOTIFICATION_A))
|
LPSCARD_READERSTATEA reader = &rgReaderStates[i];
|
||||||
|
if (!reader->szReader)
|
||||||
|
continue;
|
||||||
|
if (0 == _stricmp(reader->szReader, SMARTCARD_PNP_NOTIFICATION_A))
|
||||||
{
|
{
|
||||||
map[i] = -1; /* unmapped */
|
map[i] = -1; /* unmapped */
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user