From dfc8305918f2df571cd3826054284f1fccbfff64 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Tue, 15 Nov 2005 16:54:13 +0000 Subject: [PATCH] Don't crash if BindToStorage fails. --- dlls/urlmon/tests/url.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/urlmon/tests/url.c b/dlls/urlmon/tests/url.c index 4c69c2ea8d4..c8231d9b9a1 100644 --- a/dlls/urlmon/tests/url.c +++ b/dlls/urlmon/tests/url.c @@ -633,6 +633,8 @@ static void test_BindToStorage(void) hres = IMoniker_BindToStorage(mon, bctx, NULL, &IID_IStream, (void**)&unk); ok(SUCCEEDED(hres), "IMoniker_BindToStorage failed: %08lx\n", hres); + if (!SUCCEEDED(hres)) return; + if(test_protocol == HTTP_TEST) { todo_wine { ok(unk == NULL, "istr should be NULL\n");