mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 08:50:49 +00:00
mshtml/tests: Use nameless unions/structs.
This commit is contained in:
parent
75455010e0
commit
175d873c72
|
@ -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,
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue