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

Alexandre Julliard julliard at winehq.org
Mon Nov 3 09:06:54 CST 2008


Module: wine
Branch: master
Commit: a6d5f7df7f4d6ad14647a2462e831c59b4cd406f
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=a6d5f7df7f4d6ad14647a2462e831c59b4cd406f

Author: Francois Gouget <fgouget at free.fr>
Date:   Sun Nov  2 23:56:29 2008 +0100

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

---

 dlls/cryptui/main.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/dlls/cryptui/main.c b/dlls/cryptui/main.c
index afb8491..692196c 100644
--- a/dlls/cryptui/main.c
+++ b/dlls/cryptui/main.c
@@ -20,6 +20,8 @@
 
 #include <stdarg.h>
 
+#define NONAMELESSUNION
+
 #include "windef.h"
 #include "winbase.h"
 #include "winnls.h"
@@ -220,7 +222,7 @@ BOOL WINAPI CryptUIWizImport(DWORD dwFlags, HWND hwndParent, LPCWSTR pwszWizardT
     switch (pImportSrc->dwSubjectChoice)
     {
     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");
             return FALSE;
@@ -229,7 +231,7 @@ BOOL WINAPI CryptUIWizImport(DWORD dwFlags, HWND hwndParent, LPCWSTR pwszWizardT
             freeCert = TRUE;
         break;
     case CRYPTUI_WIZ_IMPORT_SUBJECT_CERT_CONTEXT:
-        cert = pImportSrc->pCertContext;
+        cert = pImportSrc->u.pCertContext;
         if (!cert)
         {
             SetLastError(E_INVALIDARG);




More information about the wine-cvs mailing list