ole32: Test unmarshaling the moniker instead of just releasing the marshaled data.

This commit is contained in:
Robert Shearman 2006-05-08 12:43:48 +01:00 committed by Alexandre Julliard
parent 57b42ae7bc
commit 77188bbeab
1 changed files with 4 additions and 2 deletions

View File

@ -310,6 +310,7 @@ static void test_moniker(
DWORD i;
BOOL same = TRUE;
BYTE buffer[128];
IMoniker * moniker_proxy;
/* IROTData::GetComparisonData test */
@ -443,10 +444,11 @@ static void test_moniker(
GlobalUnlock(hglobal);
IStream_Seek(stream, llZero, STREAM_SEEK_SET, NULL);
hr = CoReleaseMarshalData(stream);
ok_ole_success(hr, CoReleaseMarshalData);
hr = CoUnmarshalInterface(stream, &IID_IMoniker, (void **)&moniker_proxy);
ok_ole_success(hr, CoUnmarshalInterface);
IStream_Release(stream);
IMoniker_Release(moniker_proxy);
}
static void test_class_moniker(void)