From f4bc5e69c27c189b5fdbafe47a8520aaff0c3070 Mon Sep 17 00:00:00 2001 From: Armin Novak Date: Fri, 15 Dec 2023 08:28:08 +0100 Subject: [PATCH] [client,sdl] handle smartcard logon dialog error --- client/SDL/dialogs/sdl_dialogs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/SDL/dialogs/sdl_dialogs.cpp b/client/SDL/dialogs/sdl_dialogs.cpp index 3e91a6d0b..2ae425392 100644 --- a/client/SDL/dialogs/sdl_dialogs.cpp +++ b/client/SDL/dialogs/sdl_dialogs.cpp @@ -176,7 +176,7 @@ BOOL sdl_choose_smartcard(freerdp* instance, SmartcardCertInfo** cert_list, DWOR SDL_USEREVENT_SCARD_RESULT); if (rc > 0) { - res = TRUE; + res = (event.user.code >= 0) ? TRUE : FALSE; *choice = static_cast(event.user.code); break; }