Commit a6d5f7df authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

cryptui: Fix compilation on systems that don't support nameless unions.

parent 376adf94
...@@ -20,6 +20,8 @@ ...@@ -20,6 +20,8 @@
#include <stdarg.h> #include <stdarg.h>
#define NONAMELESSUNION
#include "windef.h" #include "windef.h"
#include "winbase.h" #include "winbase.h"
#include "winnls.h" #include "winnls.h"
...@@ -220,7 +222,7 @@ BOOL WINAPI CryptUIWizImport(DWORD dwFlags, HWND hwndParent, LPCWSTR pwszWizardT ...@@ -220,7 +222,7 @@ BOOL WINAPI CryptUIWizImport(DWORD dwFlags, HWND hwndParent, LPCWSTR pwszWizardT
switch (pImportSrc->dwSubjectChoice) switch (pImportSrc->dwSubjectChoice)
{ {
case CRYPTUI_WIZ_IMPORT_SUBJECT_FILE: case CRYPTUI_WIZ_IMPORT_SUBJECT_FILE:
if (!(cert = make_cert_from_file(pImportSrc->pwszFileName))) if (!(cert = make_cert_from_file(pImportSrc->u.pwszFileName)))
{ {
WARN("unable to create certificate context\n"); WARN("unable to create certificate context\n");
return FALSE; return FALSE;
...@@ -229,7 +231,7 @@ BOOL WINAPI CryptUIWizImport(DWORD dwFlags, HWND hwndParent, LPCWSTR pwszWizardT ...@@ -229,7 +231,7 @@ BOOL WINAPI CryptUIWizImport(DWORD dwFlags, HWND hwndParent, LPCWSTR pwszWizardT
freeCert = TRUE; freeCert = TRUE;
break; break;
case CRYPTUI_WIZ_IMPORT_SUBJECT_CERT_CONTEXT: case CRYPTUI_WIZ_IMPORT_SUBJECT_CERT_CONTEXT:
cert = pImportSrc->pCertContext; cert = pImportSrc->u.pCertContext;
if (!cert) if (!cert)
{ {
SetLastError(E_INVALIDARG); SetLastError(E_INVALIDARG);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment