fix wrong declaration
This commit is contained in:
parent
722e927c64
commit
03723c2738
@ -695,6 +695,7 @@ UINT DeviceServiceEntry(PDEVICE_SERVICE_ENTRY_POINTS pEntryPoints)
|
|||||||
int ck;
|
int ck;
|
||||||
RDPDR_SMARTCARD* device;
|
RDPDR_SMARTCARD* device;
|
||||||
SMARTCARD_DEVICE* smartcard;
|
SMARTCARD_DEVICE* smartcard;
|
||||||
|
LONG status;
|
||||||
UINT error = CHANNEL_RC_NO_MEMORY;
|
UINT error = CHANNEL_RC_NO_MEMORY;
|
||||||
device = (RDPDR_SMARTCARD*) pEntryPoints->device;
|
device = (RDPDR_SMARTCARD*) pEntryPoints->device;
|
||||||
name = device->Name;
|
name = device->Name;
|
||||||
@ -739,7 +740,6 @@ UINT DeviceServiceEntry(PDEVICE_SERVICE_ENTRY_POINTS pEntryPoints)
|
|||||||
smartcard->name = name;
|
smartcard->name = name;
|
||||||
}
|
}
|
||||||
|
|
||||||
LONG status;
|
|
||||||
status = SCardAddReaderName(&smartcard->thread, (LPSTR) name);
|
status = SCardAddReaderName(&smartcard->thread, (LPSTR) name);
|
||||||
|
|
||||||
if (status != SCARD_S_SUCCESS)
|
if (status != SCARD_S_SUCCESS)
|
||||||
|
Loading…
Reference in New Issue
Block a user