cryptdlg: Implement CertViewPropertiesA on top of CertViewPropertiesW.
This commit is contained in:
parent
d99b23819d
commit
f422fa83d2
|
@ -22,6 +22,7 @@
|
||||||
|
|
||||||
#include "windef.h"
|
#include "windef.h"
|
||||||
#include "winbase.h"
|
#include "winbase.h"
|
||||||
|
#include "winnls.h"
|
||||||
#include "wincrypt.h"
|
#include "wincrypt.h"
|
||||||
#include "wintrust.h"
|
#include "wintrust.h"
|
||||||
#include "winuser.h"
|
#include "winuser.h"
|
||||||
|
@ -110,8 +111,33 @@ HRESULT WINAPI CertTrustFinalPolicy(CRYPT_PROVIDER_DATA *pProvData)
|
||||||
*/
|
*/
|
||||||
BOOL WINAPI CertViewPropertiesA(CERT_VIEWPROPERTIES_STRUCT_A *info)
|
BOOL WINAPI CertViewPropertiesA(CERT_VIEWPROPERTIES_STRUCT_A *info)
|
||||||
{
|
{
|
||||||
FIXME("(%p): stub\n", info);
|
CERT_VIEWPROPERTIES_STRUCT_W infoW;
|
||||||
return FALSE;
|
LPWSTR title = NULL;
|
||||||
|
BOOL ret;
|
||||||
|
|
||||||
|
TRACE("(%p)\n", info);
|
||||||
|
|
||||||
|
memcpy(&infoW, info, sizeof(infoW));
|
||||||
|
if (info->szTitle)
|
||||||
|
{
|
||||||
|
int len = MultiByteToWideChar(CP_ACP, 0, info->szTitle, -1, NULL, 0);
|
||||||
|
|
||||||
|
title = HeapAlloc(GetProcessHeap(), 0, len * sizeof(WCHAR));
|
||||||
|
if (title)
|
||||||
|
{
|
||||||
|
MultiByteToWideChar(CP_ACP, 0, info->szTitle, -1, title, len);
|
||||||
|
infoW.szTitle = title;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ret = FALSE;
|
||||||
|
goto error;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
ret = CertViewPropertiesW(&infoW);
|
||||||
|
HeapFree(GetProcessHeap(), 0, title);
|
||||||
|
error:
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
|
|
Loading…
Reference in New Issue