Alexandre Julliard : shell32: Allocate the right size for an ITEMIDLIST.
Module: wine Branch: master Commit: 5260a81edc29d691a3e6d1f8eb10982de3b64246 URL: https://gitlab.winehq.org/wine/wine/-/commit/5260a81edc29d691a3e6d1f8eb10982... Author: Alexandre Julliard <julliard(a)winehq.org> Date: Thu Jan 26 10:37:11 2023 +0100 shell32: Allocate the right size for an ITEMIDLIST. Spotted by Eric Pouech. --- dlls/shell32/shfldr_fs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/shell32/shfldr_fs.c b/dlls/shell32/shfldr_fs.c index d47911dbef7..609a5c5ee6e 100644 --- a/dlls/shell32/shfldr_fs.c +++ b/dlls/shell32/shfldr_fs.c @@ -347,7 +347,7 @@ IShellFolder_fnParseDisplayName (IShellFolder2 * iface, /* Special case for the root folder. */ if (!wcsicmp( szPath, L"\\\\?\\unix\\" )) { - *ppidl = SHAlloc(sizeof(*ppidl)); + *ppidl = SHAlloc(sizeof(**ppidl)); if (!*ppidl) return E_FAIL; (*ppidl)->mkid.cb = 0; /* Terminate the ITEMIDLIST */ return S_OK;
participants (1)
-
Alexandre Julliard