Windows: fix compilation warnings

This commit is contained in:
Mounir IDRASSI 2023-07-01 15:17:24 +02:00
parent 0bfed6553d
commit a388262a2e
No known key found for this signature in database
GPG Key ID: 02C30AE90FAE4A6F

View File

@ -12373,7 +12373,7 @@ BOOL CALLBACK SecurityTokenKeyfileDlgProc (HWND hwndDlg, UINT msg, WPARAM wParam
WaitCursor(); WaitCursor();
finally_do ({ NormalCursor(); }); finally_do ({ NormalCursor(); });
keyfiles = Token::GetAvailableKeyfiles(EMVSupportEnabled); keyfiles = Token::GetAvailableKeyfiles(EMVSupportEnabled? true : false);
} }
catch (UserAbort&) catch (UserAbort&)
{ {
@ -12473,7 +12473,7 @@ BOOL CALLBACK SecurityTokenKeyfileDlgProc (HWND hwndDlg, UINT msg, WPARAM wParam
SecurityToken::CreateKeyfile (newParams.SlotId, keyfileDataVector, newParams.Name); SecurityToken::CreateKeyfile (newParams.SlotId, keyfileDataVector, newParams.Name);
keyfiles = Token::GetAvailableKeyfiles(EMVSupportEnabled); keyfiles = Token::GetAvailableKeyfiles(EMVSupportEnabled? true : false);
SecurityTokenKeyfileDlgFillList (hwndDlg, keyfiles); SecurityTokenKeyfileDlgFillList (hwndDlg, keyfiles);
} }
catch (Exception &e) catch (Exception &e)
@ -12555,7 +12555,7 @@ BOOL CALLBACK SecurityTokenKeyfileDlgProc (HWND hwndDlg, UINT msg, WPARAM wParam
SecurityToken::DeleteKeyfile (dynamic_cast<SecurityTokenKeyfile&>(*keyfile.get())); SecurityToken::DeleteKeyfile (dynamic_cast<SecurityTokenKeyfile&>(*keyfile.get()));
} }
keyfiles = Token::GetAvailableKeyfiles(EMVSupportEnabled); keyfiles = Token::GetAvailableKeyfiles(EMVSupportEnabled? true : false);
SecurityTokenKeyfileDlgFillList (hwndDlg, keyfiles); SecurityTokenKeyfileDlgFillList (hwndDlg, keyfiles);
} }
catch (Exception &e) catch (Exception &e)