Commit e62dd2a5 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

shell32: Always allocate a whole ITEMIDLIST structure.

Partially allocating a structure generates -Warray-bounds warnings with GCC11. In this specific case, given the rounding in memory allocators, would even not increase the effective allocated size. Signed-off-by: 's avatarEric Pouech <eric.pouech@gmail.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent f9923d6b
......@@ -1574,7 +1574,7 @@ LPITEMIDLIST _ILCreateDesktop(void)
LPITEMIDLIST ret;
TRACE("()\n");
ret = SHAlloc(2);
ret = SHAlloc(sizeof(*ret));
if (ret)
ret->mkid.cb = 0;
return ret;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment