Huw Davies : gameux: Zero initialize the fixed length arrays.
Alexandre Julliard
julliard at winehq.org
Fri May 6 13:44:15 CDT 2011
Module: wine
Branch: master
Commit: 173f8d23b89ec32ba4298108d1e76d41fae8dc81
URL: http://source.winehq.org/git/wine.git/?a=commit;h=173f8d23b89ec32ba4298108d1e76d41fae8dc81
Author: Huw Davies <huw at codeweavers.com>
Date: Fri May 6 12:50:39 2011 +0100
gameux: Zero initialize the fixed length arrays.
---
dlls/gameux/gamestatistics.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/gameux/gamestatistics.c b/dlls/gameux/gamestatistics.c
index 63b8c8f..65aa0f7 100644
--- a/dlls/gameux/gamestatistics.c
+++ b/dlls/gameux/gamestatistics.c
@@ -998,7 +998,7 @@ static 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-cvs
mailing list