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

Alexandre Julliard julliard at winehq.org
Mon Sep 24 16:04:25 CDT 2012


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

Author: Francois Gouget <fgouget at free.fr>
Date:   Mon Sep 24 08:03:10 2012 +0200

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

---

 dlls/windowscodecs/pngformat.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/dlls/windowscodecs/pngformat.c b/dlls/windowscodecs/pngformat.c
index 3eae4b7..d0977b4 100644
--- a/dlls/windowscodecs/pngformat.c
+++ b/dlls/windowscodecs/pngformat.c
@@ -25,6 +25,7 @@
 #include <png.h>
 #endif
 
+#define NONAMELESSUNION
 #define COBJMACROS
 
 #include "windef.h"
@@ -129,9 +130,9 @@ static HRESULT LoadTextMetadata(IStream *stream, const GUID *preferred_vendor,
     value[value_len] = 0;
 
     result[0].id.vt = VT_LPSTR;
-    result[0].id.pszVal = name;
+    result[0].id.u.pszVal = name;
     result[0].value.vt = VT_LPSTR;
-    result[0].value.pszVal = value;
+    result[0].value.u.pszVal = value;
 
     *items = result;
     *item_count = 1;




More information about the wine-cvs mailing list