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

Francois Gouget fgouget at free.fr
Mon Jul 11 05:03:18 CDT 2011


---
 programs/explorer/explorer.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/programs/explorer/explorer.c b/programs/explorer/explorer.c
index 60f4157..8b79a51 100644
--- a/programs/explorer/explorer.c
+++ b/programs/explorer/explorer.c
@@ -27,6 +27,8 @@
 #include "explorer_private.h"
 #include "resource.h"
 
+#define NONAMELESSUNION
+
 #include <initguid.h>
 #include <windows.h>
 #include <shobjidl.h>
@@ -122,7 +124,7 @@ static BOOL create_combobox_item(IShellFolder *folder, LPCITEMIDLIST pidl, IImag
     switch(strret.uType)
     {
     case STRRET_WSTR:
-        item->pszText = strret.pOleStr;
+        item->pszText = strret.u.pOleStr;
         break;
     default:
         WINE_FIXME("Unimplemented STRRET type:%u\n",strret.uType);
-- 
1.7.5.4



More information about the wine-patches mailing list