mshtml/tests: Use nameless unions/structs.

This commit is contained in:
Alexandre Julliard 2023-07-20 11:36:53 +02:00
parent 75455010e0
commit 175d873c72
2 changed files with 5 additions and 5 deletions

View file

@ -802,7 +802,7 @@ static HRESULT WINAPI Protocol_Start(IInternetProtocol *iface, LPCWSTR szUrl,
ok(bindinfo.dwBindVerb == BINDVERB_POST, "bindinfo.dwBindVerb=%ld\n", bindinfo.dwBindVerb);
ok(bindinfo.cbstgmedData == 8, "bindinfo.cbstgmedData=%ld\n", bindinfo.cbstgmedData);
ok(bindinfo.stgmedData.tymed == TYMED_HGLOBAL, "bindinfo.stgmedData.tymed=%ld\n", bindinfo.stgmedData.tymed);
ok(!memcmp(U(bindinfo.stgmedData).hGlobal, "cmd=TEST", 8), "unexpected hGlobal\n");
ok(!memcmp(bindinfo.stgmedData.hGlobal, "cmd=TEST", 8), "unexpected hGlobal\n");
}
ok(bindinfo.szCustomVerb == 0, "bindinfo.szCustomVerb=%p\n", bindinfo.szCustomVerb);
if(is_mhtml)
@ -1632,7 +1632,7 @@ static void continue_binding(IBindStatusCallback *callback)
SET_EXPECT(Read);
stgmedium.tymed = TYMED_ISTREAM;
U(stgmedium).pstm = &Stream;
stgmedium.pstm = &Stream;
stgmedium.pUnkForRelease = (IUnknown*)&Moniker;
hres = IBindStatusCallback_OnDataAvailable(callback,
BSCF_FIRSTDATANOTIFICATION|BSCF_LASTDATANOTIFICATION,

View file

@ -3864,7 +3864,7 @@ static void stream_write(const WCHAR *name, const WCHAR *data)
hres = IStream_Write(protocol_handler->stream, data, lstrlenW(data)*sizeof(WCHAR), NULL);
ok(hres == S_OK, "Write failed: %08lx\n", hres);
U(large_zero).QuadPart = 0;
large_zero.QuadPart = 0;
hres = IStream_Seek(protocol_handler->stream, large_zero, STREAM_SEEK_SET, NULL);
ok(hres == S_OK, "Seek failed: %08lx\n", hres);
@ -4042,10 +4042,10 @@ static HRESULT WINAPI ProtocolEx_StartEx(IInternetProtocolEx *iface, IUri *uri,
switch(This->bind_info.stgmedData.tymed) {
case TYMED_HGLOBAL:
This->size = This->bind_info.cbstgmedData;
This->data = U(This->bind_info.stgmedData).hGlobal;
This->data = This->bind_info.stgmedData.hGlobal;
break;
case TYMED_ISTREAM:
This->stream = U(This->bind_info.stgmedData).pstm;
This->stream = This->bind_info.stgmedData.pstm;
IStream_AddRef(This->stream);
break;
default: