From d578e7981a6ca998b68f4c133e34fc91849d1248 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Thu, 20 Jul 2023 11:35:24 +0200 Subject: [PATCH] inetcomm/tests: Use nameless unions/structs. --- dlls/inetcomm/tests/mimeintl.c | 2 -- dlls/inetcomm/tests/mimeole.c | 8 +++----- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/dlls/inetcomm/tests/mimeintl.c b/dlls/inetcomm/tests/mimeintl.c index 3eaa86fe7e3..85799670264 100644 --- a/dlls/inetcomm/tests/mimeintl.c +++ b/dlls/inetcomm/tests/mimeintl.c @@ -19,8 +19,6 @@ */ #define COBJMACROS -#define NONAMELESSUNION - #include "windows.h" #include "ole2.h" #include "ocidl.h" diff --git a/dlls/inetcomm/tests/mimeole.c b/dlls/inetcomm/tests/mimeole.c index 1168341610f..eef81fed44c 100644 --- a/dlls/inetcomm/tests/mimeole.c +++ b/dlls/inetcomm/tests/mimeole.c @@ -19,8 +19,6 @@ */ #define COBJMACROS -#define NONAMELESSUNION - #include "initguid.h" #include "windows.h" #include "ole2.h" @@ -204,7 +202,7 @@ static void test_CreateBody(void) ok(hr == S_OK, "ret %08lx\n", hr); off.QuadPart = 0; IStream_Seek(in, off, STREAM_SEEK_CUR, &pos); - ok(pos.u.LowPart == 359, "pos %lu\n", pos.u.LowPart); + ok(pos.LowPart == 359, "pos %lu\n", pos.LowPart); hr = IMimeBody_IsContentType(body, "multipart", "mixed"); ok(hr == S_OK, "ret %08lx\n", hr); @@ -347,7 +345,7 @@ static HRESULT WINAPI Stream_Seek(IStream *iface, LARGE_INTEGER dlibMove, DWORD if(dwOrigin == STREAM_SEEK_END) { CHECK_EXPECT(Stream_Seek_END); - ok(dlibMove.QuadPart == expect_seek_pos, "unexpected seek pos %lu\n", dlibMove.u.LowPart); + ok(dlibMove.QuadPart == expect_seek_pos, "unexpected seek pos %lu\n", dlibMove.LowPart); if(plibNewPosition) plibNewPosition->QuadPart = 10; return S_OK; @@ -355,7 +353,7 @@ static HRESULT WINAPI Stream_Seek(IStream *iface, LARGE_INTEGER dlibMove, DWORD CHECK_EXPECT(Stream_Seek); - ok(dlibMove.QuadPart == expect_seek_pos, "unexpected seek pos %lu\n", dlibMove.u.LowPart); + ok(dlibMove.QuadPart == expect_seek_pos, "unexpected seek pos %lu\n", dlibMove.LowPart); ok(dwOrigin == STREAM_SEEK_SET, "dwOrigin = %ld\n", dwOrigin); This->pos = dlibMove.QuadPart; if(plibNewPosition)