gameux/tests: Initialise variable (valgrind)

André Hentschel nerv at dawncrow.de
Wed Jan 12 15:03:34 CST 2011


as done in dlls/advapi32/tests/security.c:338
---
 dlls/gameux/tests/gameexplorer.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dlls/gameux/tests/gameexplorer.c b/dlls/gameux/tests/gameexplorer.c
index e078172..e9df2e5 100644
--- a/dlls/gameux/tests/gameexplorer.c
+++ b/dlls/gameux/tests/gameexplorer.c
@@ -621,6 +621,8 @@ static void test_install_uninstall_game(void)
     DWORD dwExeNameLen;
     GUID guid;
 
+    memset( &guid, 0x00, sizeof (guid) );
+
     hr = CoCreateInstance(&CLSID_GameExplorer, NULL, CLSCTX_INPROC_SERVER, &IID_IGameExplorer2, (LPVOID*)&ge2);
     ok(ge2 != NULL, "cannot create coclass IGameExplorer2\n");
     ok(hr == S_OK, "cannot create coclass IGameExplorer2\n");
-- 

Best Regards, André Hentschel



More information about the wine-patches mailing list