ChangeSet ID: 21282 CVSROOT: /opt/cvs-commit Module name: wine Changes by: julliard@winehq.org 2005/11/15 10:54:13
Modified files: dlls/urlmon/tests: url.c
Log message: Don't crash if BindToStorage fails.
Patch: http://cvs.winehq.org/patch.py?id=21282
Old revision New revision Changes Path 1.13 1.14 +2 -0 wine/dlls/urlmon/tests/url.c
Index: wine/dlls/urlmon/tests/url.c diff -u -p wine/dlls/urlmon/tests/url.c:1.13 wine/dlls/urlmon/tests/url.c:1.14 --- wine/dlls/urlmon/tests/url.c:1.13 15 Nov 2005 16:54:13 -0000 +++ wine/dlls/urlmon/tests/url.c 15 Nov 2005 16:54:13 -0000 @@ -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");