Alexandre Julliard : ole32/tests: Set returned pointer to NULL in CreateInstance (Valgrind).

Alexandre Julliard julliard at winehq.org
Thu Oct 22 10:39:55 CDT 2009


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Thu Oct 22 13:04:30 2009 +0200

ole32/tests: Set returned pointer to NULL in CreateInstance (Valgrind).

---

 dlls/ole32/tests/marshal.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/ole32/tests/marshal.c b/dlls/ole32/tests/marshal.c
index af2ae6e..4239b55 100644
--- a/dlls/ole32/tests/marshal.c
+++ b/dlls/ole32/tests/marshal.c
@@ -1799,6 +1799,7 @@ static HRESULT WINAPI TestRE_IClassFactory_CreateInstance(
         BOOL ret = SendMessageTimeout(hwnd_app, WM_NULL, 0, 0, SMTO_BLOCK, 5000, &res);
         ok(ret, "Timed out sending a message to originating window during RPC call\n");
     }
+    *ppvObj = NULL;
     return S_FALSE;
 }
 




More information about the wine-cvs mailing list