Commit 5416057e authored by Alistair Leslie-Hughes's avatar Alistair Leslie-Hughes Committed by Alexandre Julliard

inetcomm: Correct test under w2k8.

parent 65e614a9
...@@ -46,13 +46,26 @@ static void test_create(void) ...@@ -46,13 +46,26 @@ static void test_create(void)
hr = MimeOleGetInternat(&internat2); hr = MimeOleGetInternat(&internat2);
ok(hr == S_OK, "ret %08x\n", hr); ok(hr == S_OK, "ret %08x\n", hr);
/* test to show that the object is a singleton with /* Under w2k8 it's no longer a singleton */
a reference held by the dll. */ if(internat == internat2)
ok(internat == internat2, "instances differ\n"); {
ref = IMimeInternational_Release(internat2); /* test to show that the object is a singleton with
ok(ref == 2, "got %d\n", ref); a reference held by the dll. */
ref = IMimeInternational_Release(internat2);
ok(ref == 2, "got %d\n", ref);
ref = IMimeInternational_Release(internat);
ok(ref == 1, "got %d\n", ref);
}
else
{
ref = IMimeInternational_Release(internat2);
ok(ref == 0, "got %d\n", ref);
ref = IMimeInternational_Release(internat);
ok(ref == 0, "got %d\n", ref);
}
IMimeInternational_Release(internat);
} }
static inline HRESULT get_mlang(IMultiLanguage **ml) static inline HRESULT get_mlang(IMultiLanguage **ml)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment