[PATCH] explorer: fixed wrong heapalloc size (Coverity)
Marcus Meissner
marcus at jet.franken.de
Sun Jun 9 13:30:23 CDT 2013
1030116 Wrong sizeof argument
Ciao, Marcus
---
programs/explorer/desktop.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
--
1.7.10.4
More information about the wine-patches
mailing list