explorer: Fixed wrong heapalloc size (Coverity).

This commit is contained in:
Marcus Meissner 2013-06-09 20:30:23 +02:00 committed by Alexandre Julliard
parent a2307a3339
commit 9a336ce3e7

View file

@ -457,7 +457,7 @@ static void initialize_launchers( HWND hwnd )
CoTaskMemFree( desktop_folder ); CoTaskMemFree( desktop_folder );
return; return;
} }
if ((launchers = HeapAlloc( GetProcessHeap(), 0, 2 * sizeof(struct launcher) ))) if ((launchers = HeapAlloc( GetProcessHeap(), 0, 2 * sizeof(launchers[0]) )))
{ {
nb_allocated = 2; nb_allocated = 2;