From 03723c27380806206d0007308f6ec150ac7fec7b Mon Sep 17 00:00:00 2001 From: dodo040 Date: Mon, 15 May 2017 17:17:08 +0200 Subject: [PATCH] fix wrong declaration --- channels/smartcard/client/smartcard_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/channels/smartcard/client/smartcard_main.c b/channels/smartcard/client/smartcard_main.c index b101e2231..0945206ec 100644 --- a/channels/smartcard/client/smartcard_main.c +++ b/channels/smartcard/client/smartcard_main.c @@ -695,6 +695,7 @@ UINT DeviceServiceEntry(PDEVICE_SERVICE_ENTRY_POINTS pEntryPoints) int ck; RDPDR_SMARTCARD* device; SMARTCARD_DEVICE* smartcard; + LONG status; UINT error = CHANNEL_RC_NO_MEMORY; device = (RDPDR_SMARTCARD*) pEntryPoints->device; name = device->Name; @@ -739,7 +740,6 @@ UINT DeviceServiceEntry(PDEVICE_SERVICE_ENTRY_POINTS pEntryPoints) smartcard->name = name; } - LONG status; status = SCardAddReaderName(&smartcard->thread, (LPSTR) name); if (status != SCARD_S_SUCCESS)