windowscodecs: Fix compilation on systems that don't support nameless unions.
Francois Gouget
fgouget at free.fr
Mon Sep 24 01:03:10 CDT 2012
---
dlls/windowscodecs/pngformat.c | 5 +++--
1 file 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;
--
1.7.10.4
More information about the wine-patches
mailing list