mirror of
https://github.com/reactos/reactos.git
synced 2025-05-25 20:18:22 +00:00
[RAPPS] Fix certificate pinning error displaying garbage
This commit is contained in:
parent
12489f691b
commit
12caaece25
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue