mirror of
git://source.winehq.org/git/wine.git
synced 2024-08-31 12:34:09 +00:00
explorer: Fixed wrong heapalloc size (Coverity).
This commit is contained in:
parent
a2307a3339
commit
9a336ce3e7
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue