[RAPPS] Fix certificate pinning error displaying garbage

This commit is contained in:
Mark Jansen 2020-09-30 19:24:10 +02:00
parent 12489f691b
commit 12caaece25
No known key found for this signature in database
GPG key ID: B39240EE84BEAE8B

View file

@ -811,7 +811,7 @@ unsigned int WINAPI CDownloadManager::ThreadFunc(LPVOID param)
(InfoArray[iAppId].DLType == DLTYPE_DBUPDATE)) (InfoArray[iAppId].DLType == DLTYPE_DBUPDATE))
{ {
CLocalPtr<char> subjectName, issuerName; CLocalPtr<char> subjectName, issuerName;
CStringW szMsgText; CStringA szMsgText;
bool bAskQuestion = false; bool bAskQuestion = false;
if (!CertGetSubjectAndIssuer(hFile, subjectName, issuerName)) if (!CertGetSubjectAndIssuer(hFile, subjectName, issuerName))
{ {
@ -830,7 +830,7 @@ unsigned int WINAPI CDownloadManager::ThreadFunc(LPVOID param)
if (bAskQuestion) if (bAskQuestion)
{ {
if (MessageBoxW(hMainWnd, szMsgText.GetString(), NULL, MB_YESNO | MB_ICONERROR) != IDYES) if (MessageBoxA(hMainWnd, szMsgText.GetString(), NULL, MB_YESNO | MB_ICONERROR) != IDYES)
{ {
goto end; goto end;
} }