mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:54:13 +00:00
ole32/tests: Fix crash on W2K and below.
This commit is contained in:
parent
c57688ee25
commit
470a0a22f4
1 changed files with 4 additions and 2 deletions
|
@ -783,7 +783,8 @@ static void test_OleCreate(IStorage *pStorage)
|
|||
trace("OleCreate with OLERENDER_FORMAT:\n");
|
||||
hr = OleCreate(&CLSID_Equation3, &IID_IOleObject, OLERENDER_FORMAT, &formatetc, (IOleClientSite *)0xdeadbeef, pStorage, (void **)&pObject);
|
||||
ok_ole_success(hr, "OleCreate");
|
||||
IOleObject_Release(pObject);
|
||||
if (pObject)
|
||||
IOleObject_Release(pObject);
|
||||
ok(!*expected_method_list, "Method sequence starting from %s not called\n", *expected_method_list);
|
||||
|
||||
expected_method_list = methods_olerender_asis;
|
||||
|
@ -839,7 +840,8 @@ static void test_OleLoad(IStorage *pStorage)
|
|||
trace("OleLoad:\n");
|
||||
hr = OleLoad(pStorage, &IID_IOleObject, (IOleClientSite *)0xdeadbeef, (void **)&pObject);
|
||||
ok_ole_success(hr, "OleLoad");
|
||||
IOleObject_Release(pObject);
|
||||
if (pObject)
|
||||
IOleObject_Release(pObject);
|
||||
ok(!*expected_method_list, "Method sequence starting from %s not called\n", *expected_method_list);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue