Gijs Vermeulen : shell32: Free original_dos_name with correct function in TRASH_GetDetails() (Coverity).
Module: wine Branch: master Commit: 48038508f5ee0b5670a3a0fa2377938ab6bbca6b URL: https://source.winehq.org/git/wine.git/?a=commit;h=48038508f5ee0b5670a3a0fa2... Author: Gijs Vermeulen <gijsvrm(a)gmail.com> Date: Tue Aug 18 16:12:07 2020 +0200 shell32: Free original_dos_name with correct function in TRASH_GetDetails() (Coverity). Signed-off-by: Gijs Vermeulen <gijsvrm(a)gmail.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/shell32/trash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/shell32/trash.c b/dlls/shell32/trash.c index 93b4ee4588..f34b106bd6 100644 --- a/dlls/shell32/trash.c +++ b/dlls/shell32/trash.c @@ -662,7 +662,7 @@ static HRESULT TRASH_GetDetails(const TRASH_BUCKET *bucket, LPCSTR filename, WIN if (original_dos_name != NULL) { lstrcpynW(data->cFileName, original_dos_name, MAX_PATH); - SHFree(original_dos_name); + heap_free(original_dos_name); } else {
participants (1)
-
Alexandre Julliard