Fixed smartcard filter for empty arguments.

This commit is contained in:
Armin Novak 2018-09-19 11:13:02 +02:00
parent 24936c1858
commit f63286dbea

View File

@ -811,7 +811,9 @@ UINT DeviceServiceEntry(PDEVICE_SERVICE_ENTRY_POINTS pEntryPoints)
else
smartcard = sSmartcard;
LinkedList_AddLast(smartcard->names, pEntryPoints->device->Name);
if (pEntryPoints->device->Name)
LinkedList_AddLast(smartcard->names, pEntryPoints->device->Name);
sSmartcard = smartcard;
return CHANNEL_RC_OK;
fail: