inetcomm: Correct test under w2k8.
This commit is contained in:
parent
65e614a9ca
commit
5416057e79
|
@ -46,13 +46,26 @@ static void test_create(void)
|
|||
hr = MimeOleGetInternat(&internat2);
|
||||
ok(hr == S_OK, "ret %08x\n", hr);
|
||||
|
||||
/* 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. */
|
||||
ok(internat == internat2, "instances differ\n");
|
||||
ref = IMimeInternational_Release(internat2);
|
||||
ok(ref == 2, "got %d\n", ref);
|
||||
|
||||
IMimeInternational_Release(internat);
|
||||
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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
static inline HRESULT get_mlang(IMultiLanguage **ml)
|
||||
|
|
Loading…
Reference in New Issue