mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 12:49:45 +00:00
urlmon/tests: Avoid comparing uninitialized structure data.
This commit is contained in:
parent
89b08bc6e2
commit
35bc0c798a
@ -438,7 +438,14 @@ static HRESULT WINAPI ProtocolSink_Switch(IInternetProtocolSink *iface, PROTOCOL
|
||||
ok(pProtocolData != NULL, "pProtocolData == NULL\n");
|
||||
if(binding_test) {
|
||||
ok(pProtocolData != &protocoldata, "pProtocolData == &protocoldata\n");
|
||||
ok(!memcmp(pProtocolData, &protocoldata, sizeof(PROTOCOLDATA)), "*pProtocolData != protocoldata\n");
|
||||
ok(pProtocolData->grfFlags == protocoldata.grfFlags, "grfFlags wrong %x/%x\n",
|
||||
pProtocolData->grfFlags, protocoldata.grfFlags );
|
||||
ok(pProtocolData->dwState == protocoldata.dwState, "dwState wrong %x/%x\n",
|
||||
pProtocolData->dwState, protocoldata.dwState );
|
||||
ok(pProtocolData->pData == protocoldata.pData, "pData wrong %p/%p\n",
|
||||
pProtocolData->pData, protocoldata.pData );
|
||||
ok(pProtocolData->cbData == protocoldata.cbData, "cbData wrong %x/%x\n",
|
||||
pProtocolData->cbData, protocoldata.cbData );
|
||||
}
|
||||
|
||||
pdata = pProtocolData;
|
||||
@ -1327,7 +1334,14 @@ static HRESULT WINAPI ProtocolEmul_Continue(IInternetProtocol *iface,
|
||||
return S_OK;
|
||||
if(binding_test) {
|
||||
ok(pProtocolData != &protocoldata, "pProtocolData == &protocoldata\n");
|
||||
ok(!memcmp(pProtocolData, &protocoldata, sizeof(PROTOCOLDATA)), "*pProtocolData != protocoldata\n");
|
||||
ok(pProtocolData->grfFlags == protocoldata.grfFlags, "grfFlags wrong %x/%x\n",
|
||||
pProtocolData->grfFlags, protocoldata.grfFlags );
|
||||
ok(pProtocolData->dwState == protocoldata.dwState, "dwState wrong %x/%x\n",
|
||||
pProtocolData->dwState, protocoldata.dwState );
|
||||
ok(pProtocolData->pData == protocoldata.pData, "pData wrong %p/%p\n",
|
||||
pProtocolData->pData, protocoldata.pData );
|
||||
ok(pProtocolData->cbData == protocoldata.cbData, "cbData wrong %x/%x\n",
|
||||
pProtocolData->cbData, protocoldata.cbData );
|
||||
}
|
||||
|
||||
switch(prot_state) {
|
||||
|
Loading…
Reference in New Issue
Block a user