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

Alexandre Julliard julliard at wine.codeweavers.com
Mon May 8 09:06:21 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: 77188bbeabc4d0ea7481c1cc01a4db6ea682fc6a
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=77188bbeabc4d0ea7481c1cc01a4db6ea682fc6a

Author: Robert Shearman <rob at codeweavers.com>
Date:   Mon May  8 12:43:48 2006 +0100

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

---

 dlls/ole32/tests/moniker.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/dlls/ole32/tests/moniker.c b/dlls/ole32/tests/moniker.c
index 0bfc1ff..a5b10ce 100644
--- a/dlls/ole32/tests/moniker.c
+++ b/dlls/ole32/tests/moniker.c
@@ -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)




More information about the wine-cvs mailing list