urlmon: Skip pstgmed related tests if NULL.
This commit is contained in:
parent
3bf12b9aca
commit
61b4b0c362
@ -1283,11 +1283,13 @@ static HRESULT WINAPI statusclb_OnDataAvailable(IBindStatusCallback *iface, DWOR
|
|||||||
}
|
}
|
||||||
|
|
||||||
ok(pstgmed != NULL, "stgmeg == NULL\n");
|
ok(pstgmed != NULL, "stgmeg == NULL\n");
|
||||||
if(pstgmed) {
|
if(!pstgmed) {
|
||||||
|
skip("further pstgmed related tests here.\n");
|
||||||
|
return S_OK;
|
||||||
|
}
|
||||||
ok(pstgmed->tymed == TYMED_ISTREAM, "tymed=%u\n", pstgmed->tymed);
|
ok(pstgmed->tymed == TYMED_ISTREAM, "tymed=%u\n", pstgmed->tymed);
|
||||||
ok(U(*pstgmed).pstm != NULL, "pstm == NULL\n");
|
ok(U(*pstgmed).pstm != NULL, "pstm == NULL\n");
|
||||||
ok(pstgmed->pUnkForRelease != NULL, "pUnkForRelease == NULL\n");
|
ok(pstgmed->pUnkForRelease != NULL, "pUnkForRelease == NULL\n");
|
||||||
}
|
|
||||||
|
|
||||||
if(grfBSCF & BSCF_FIRSTDATANOTIFICATION) {
|
if(grfBSCF & BSCF_FIRSTDATANOTIFICATION) {
|
||||||
hres = IStream_Write(U(*pstgmed).pstm, buf, 10, NULL);
|
hres = IStream_Write(U(*pstgmed).pstm, buf, 10, NULL);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user