ieframe/tests: Skip rest of tests if CoCreateInstance failed. (try 3)
Octavian Voicu
octavian.voicu at gmail.com
Thu Aug 25 08:06:20 CDT 2011
--
Prevents a crash on WOW64, where CLSID_InternetExplorer\LocalServer32
points to nonexistent iexplore.exe in Program Files (x86) folder.
try 3: just return, no skip, as suggested by Jacek.
---
dlls/ieframe/tests/ie.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/ieframe/tests/ie.c b/dlls/ieframe/tests/ie.c
index 6f62e23..b761c6f 100644
--- a/dlls/ieframe/tests/ie.c
+++ b/dlls/ieframe/tests/ie.c
@@ -60,6 +60,9 @@ static void test_InternetExplorer(void)
&IID_IUnknown, (void**)&unk);
ok(hres == S_OK, "Could not create InternetExplorer instance: %08x\n", hres);
+ if(hres != S_OK)
+ return;
+
hres = IUnknown_QueryInterface(unk, &IID_IWebBrowser2, (void**)&wb);
ok(hres == S_OK, "Could not get IWebBrowser2 interface: %08x\n", hres);
--
1.7.4.1
More information about the wine-patches
mailing list