[client,sdl] handle smartcard logon dialog error

This commit is contained in:
Armin Novak 2023-12-15 08:28:08 +01:00 committed by akallabeth
parent 749da7eefc
commit f4bc5e69c2

View File

@ -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<DWORD>(event.user.code);
break;
}