[PATCH] handle it if MimeBody is not created

Marcus Meissner marcus at jet.franken.de
Sun Mar 9 14:41:09 CDT 2008


Crashed on my make check (before running wineprefixcreate)

Ciao, Marcus
---
 dlls/inetcomm/tests/mimeole.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/dlls/inetcomm/tests/mimeole.c b/dlls/inetcomm/tests/mimeole.c
index d286b74..e3875d6 100644
--- a/dlls/inetcomm/tests/mimeole.c
+++ b/dlls/inetcomm/tests/mimeole.c
@@ -99,6 +99,10 @@ static void test_CreateBody(void)
 
     hr = CoCreateInstance(&CLSID_IMimeBody, NULL, CLSCTX_INPROC_SERVER, &IID_IMimeBody, (void**)&body);
     ok(hr == S_OK, "ret %08x\n", hr);
+    if (!SUCCEEDED(hr)) {
+	skip("MimeBody tests skipped.\n");
+	return;
+    }
 
     hr = IMimeBody_GetHandle(body, &handle);
     ok(hr == MIME_E_NO_DATA, "ret %08x\n", hr);
-- 
1.5.2.4



More information about the wine-patches mailing list