gameux/tests: initialize a variable (valgrind)
Austin English
austinenglish at gmail.com
Mon Feb 14 19:02:23 CST 2011
Pointed out by Vincent Povirk.
Fixes part of http://bugs.winehq.org/show_bug.cgi?id=26113
--
-Austin
-------------- next part --------------
diff --git a/dlls/gameux/gamestatistics.c b/dlls/gameux/gamestatistics.c
index b0e7674..c474630 100644
--- a/dlls/gameux/gamestatistics.c
+++ b/dlls/gameux/gamestatistics.c
@@ -998,7 +998,7 @@ HRESULT create_IGameStatistics(GameStatisticsImpl** ppStats)
{
TRACE("(%p)\n", ppStats);
- *ppStats = HeapAlloc( GetProcessHeap(), 0, sizeof(**ppStats));
+ *ppStats = HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(**ppStats));
if(!(*ppStats))
return E_OUTOFMEMORY;
More information about the wine-patches
mailing list