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

Alexandre Julliard julliard at winehq.org
Mon Jan 16 13:01:29 CST 2012


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

Author: Francois Gouget <fgouget at free.fr>
Date:   Sun Jan 15 21:08:06 2012 +0100

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

---

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

diff --git a/dlls/windowscodecs/metadatahandler.c b/dlls/windowscodecs/metadatahandler.c
index 23854d8..114c3af 100644
--- a/dlls/windowscodecs/metadatahandler.c
+++ b/dlls/windowscodecs/metadatahandler.c
@@ -21,6 +21,7 @@
 #include <stdarg.h>
 
 #define COBJMACROS
+#define NONAMELESSUNION
 
 #include "windef.h"
 #include "winbase.h"
@@ -567,8 +568,8 @@ static HRESULT LoadUnknownMetadata(IStream *input, const GUID *preferred_vendor,
     PropVariantInit(&result[0].value);
 
     result[0].value.vt = VT_BLOB;
-    result[0].value.blob.cbSize = bytesread;
-    result[0].value.blob.pBlobData = data;
+    result[0].value.u.blob.cbSize = bytesread;
+    result[0].value.u.blob.pBlobData = data;
 
     *items = result;
     *item_count = 1;




More information about the wine-cvs mailing list