Commit 61b4b0c3 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

urlmon: Skip pstgmed related tests if NULL.

parent 3bf12b9a
...@@ -1283,11 +1283,13 @@ static HRESULT WINAPI statusclb_OnDataAvailable(IBindStatusCallback *iface, DWOR ...@@ -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) {
ok(pstgmed->tymed == TYMED_ISTREAM, "tymed=%u\n", pstgmed->tymed); skip("further pstgmed related tests here.\n");
ok(U(*pstgmed).pstm != NULL, "pstm == NULL\n"); return S_OK;
ok(pstgmed->pUnkForRelease != NULL, "pUnkForRelease == NULL\n");
} }
ok(pstgmed->tymed == TYMED_ISTREAM, "tymed=%u\n", pstgmed->tymed);
ok(U(*pstgmed).pstm != NULL, "pstm == 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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment