Module: wine Branch: master Commit: 61b4b0c362d92e590517f7d5bc6ed87206ba554c URL: http://source.winehq.org/git/wine.git/?a=commit;h=61b4b0c362d92e590517f7d5bc...
Author: Marcus Meissner marcus@jet.franken.de Date: Wed Jan 16 20:03:58 2008 +0100
urlmon: Skip pstgmed related tests if NULL.
---
dlls/urlmon/tests/url.c | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/dlls/urlmon/tests/url.c b/dlls/urlmon/tests/url.c index 8ac533a..91366aa 100644 --- a/dlls/urlmon/tests/url.c +++ b/dlls/urlmon/tests/url.c @@ -1283,11 +1283,13 @@ static HRESULT WINAPI statusclb_OnDataAvailable(IBindStatusCallback *iface, DWOR }
ok(pstgmed != NULL, "stgmeg == NULL\n"); - if(pstgmed) { - 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(!pstgmed) { + skip("further pstgmed related tests here.\n"); + return S_OK; } + 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) { hres = IStream_Write(U(*pstgmed).pstm, buf, 10, NULL);