Rob Shearman : ole32: Fix the test of the size returned from WdtpInterfacePointer_UserSize.

Alexandre Julliard julliard at winehq.org
Tue Dec 4 13:25:17 CST 2007


Module: wine
Branch: master
Commit: b711d35d406c8979d50ce310555329c4e90ca3db
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=b711d35d406c8979d50ce310555329c4e90ca3db

Author: Rob Shearman <rob at codeweavers.com>
Date:   Mon Dec  3 16:08:41 2007 +0000

ole32: Fix the test of the size returned from WdtpInterfacePointer_UserSize.

It varies on different versions of Windows, so we shouldn't test it for 
an exact value.

---

 dlls/ole32/tests/usrmarshal.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/dlls/ole32/tests/usrmarshal.c b/dlls/ole32/tests/usrmarshal.c
index d6fd7ee..60e85cf 100644
--- a/dlls/ole32/tests/usrmarshal.c
+++ b/dlls/ole32/tests/usrmarshal.c
@@ -441,7 +441,8 @@ static void test_marshal_WdtpInterfacePointer(void)
     unk = &Test_Unknown;
     size = WdtpInterfacePointer_UserSize(&umcb.Flags, umcb.Flags, 0, unk, &IID_IUnknown);
     todo_wine
-    ok(size == 108, "size should be 108 bytes, not %d\n", size);
+    ok(size > 28, "size should be > 28 bytes, not %d\n", size);
+    trace("WdtpInterfacePointer_UserSize returned %d\n", size);
     buffer = HeapAlloc(GetProcessHeap(), 0, size);
     buffer_end = WdtpInterfacePointer_UserMarshal(&umcb.Flags, umcb.Flags, buffer, unk, &IID_IUnknown);
     wireip = buffer;




More information about the wine-cvs mailing list