ole32: Fix compilation with gcc 2.95

Francois Gouget fgouget at codeweavers.com
Thu May 11 17:16:19 CDT 2006


Changelog:

  * dlls/ole32/tests/storage32.c

    Francois Gouget <fgouget at codeweavers.com>
    ole32: Fix compilation with gcc 2.95

-- 
Francois Gouget
fgouget at codeweavers.com

-------------- next part --------------
Index: dlls/ole32/tests/storage32.c
===================================================================
RCS file: /home/wine/wine/dlls/ole32/tests/storage32.c,v
retrieving revision 1.29
diff -u -p -r1.29 storage32.c
--- dlls/ole32/tests/storage32.c	8 May 2006 14:07:27 -0000	1.29
+++ dlls/ole32/tests/storage32.c	11 May 2006 20:57:49 -0000
@@ -715,8 +715,8 @@ static void test_storage_refcount(void)
         r = IStorage_Stat( stg, &statstg, STATFLAG_NONAME );
         ok(r == S_OK, "Stat should have succeded instead of returning 0x%08lx\n", r);
         ok(statstg.type == STGTY_STORAGE, "Statstg type should have been STGTY_STORAGE instead of %ld\n", statstg.type);
-        ok(statstg.cbSize.LowPart == 0, "Statstg cbSize.LowPart should have been 0 instead of %ld\n", statstg.cbSize.LowPart);
-        ok(statstg.cbSize.HighPart == 0, "Statstg cbSize.HighPart should have been 0 instead of %ld\n", statstg.cbSize.HighPart);
+        ok(U(statstg.cbSize).LowPart == 0, "Statstg cbSize.LowPart should have been 0 instead of %ld\n", U(statstg.cbSize).LowPart);
+        ok(U(statstg.cbSize).HighPart == 0, "Statstg cbSize.HighPart should have been 0 instead of %ld\n", U(statstg.cbSize).HighPart);
         ok(statstg.grfMode == (STGM_TRANSACTED|STGM_SHARE_DENY_WRITE|STGM_READWRITE),
             "Statstg grfMode should have been 0x10022 instead of 0x%lx\n", statstg.grfMode);
         ok(statstg.grfLocksSupported == 0, "Statstg grfLocksSupported should have been 0 instead of %ld\n", statstg.grfLocksSupported);
@@ -732,8 +732,8 @@ static void test_storage_refcount(void)
         ok(!lstrcmpW(statstg.pwcsName, stgname),
             "Statstg pwcsName should have been the name the storage was created with\n");
         ok(statstg.type == STGTY_STORAGE, "Statstg type should have been STGTY_STORAGE instead of %ld\n", statstg.type);
-        ok(statstg.cbSize.LowPart == 0, "Statstg cbSize.LowPart should have been 0 instead of %ld\n", statstg.cbSize.LowPart);
-        ok(statstg.cbSize.HighPart == 0, "Statstg cbSize.HighPart should have been 0 instead of %ld\n", statstg.cbSize.HighPart);
+        ok(U(statstg.cbSize).LowPart == 0, "Statstg cbSize.LowPart should have been 0 instead of %ld\n", U(statstg.cbSize).LowPart);
+        ok(U(statstg.cbSize).HighPart == 0, "Statstg cbSize.HighPart should have been 0 instead of %ld\n", U(statstg.cbSize).HighPart);
         ok(statstg.grfMode == STGM_SHARE_EXCLUSIVE,
             "Statstg grfMode should have been STGM_SHARE_EXCLUSIVE instead of 0x%lx\n", statstg.grfMode);
         ok(statstg.grfLocksSupported == 0, "Statstg grfLocksSupported should have been 0 instead of %ld\n", statstg.grfLocksSupported);


More information about the wine-patches mailing list