Module: wine Branch: master Commit: 9a336ce3e74f8ba8e51cf7339274cac06af041da URL: http://source.winehq.org/git/wine.git/?a=commit;h=9a336ce3e74f8ba8e51cf73392...
Author: Marcus Meissner marcus@jet.franken.de Date: Sun Jun 9 20:30:23 2013 +0200
explorer: Fixed wrong heapalloc size (Coverity).
---
programs/explorer/desktop.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/programs/explorer/desktop.c b/programs/explorer/desktop.c index 33b58dc..5503787 100644 --- a/programs/explorer/desktop.c +++ b/programs/explorer/desktop.c @@ -457,7 +457,7 @@ static void initialize_launchers( HWND hwnd ) CoTaskMemFree( desktop_folder ); return; } - if ((launchers = HeapAlloc( GetProcessHeap(), 0, 2 * sizeof(struct launcher) ))) + if ((launchers = HeapAlloc( GetProcessHeap(), 0, 2 * sizeof(launchers[0]) ))) { nb_allocated = 2;