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)
hr = MimeOleGetInternat(&internat2);
ok(hr == S_OK, "ret %08x\n", hr);
/* test to show that the object is a singleton with
a reference held by the dll. */
ok(internat == internat2, "instances differ\n");
ref = IMimeInternational_Release(internat2);
ok(ref == 2, "got %d\n", ref);
/* Under w2k8 it's no longer a singleton */
if(internat == internat2)
{
/* test to show that the object is a singleton with
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)
......
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