ole32/tests: Fix compilation on systems that don't support nameless unions.
Francois Gouget
fgouget at free.fr
Sat Sep 17 04:33:29 CDT 2011
---
stat.cbSize is a ULARGE_INTEGER. What's interesting with the
LARGE_INTEGER types is that they are a union containing a QuadPart
LONGLONG, a nameless struct and a struct called 'u'. So one can always
count on the presence of this named union, making the use of the U()
macro unnecessary.
dlls/ole32/tests/storage32.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/ole32/tests/storage32.c b/dlls/ole32/tests/storage32.c
index b8c6ada..b465269 100644
--- a/dlls/ole32/tests/storage32.c
+++ b/dlls/ole32/tests/storage32.c
@@ -2984,7 +2984,7 @@ static void test_hglobal_storage_creation(void)
r = ILockBytes_Stat(ilb, &stat, STATFLAG_NONAME);
ok(r == S_OK, "ILockBytes_Stat failed, hr=%x\n", r);
- ok(stat.cbSize.LowPart < 2512, "expected truncated size, got %d\n", stat.cbSize.LowPart);
+ ok(stat.cbSize.u.LowPart < 2512, "expected truncated size, got %d\n", stat.cbSize.u.LowPart);
ILockBytes_Release(ilb);
}
--
1.7.5.4
More information about the wine-patches
mailing list