Zebediah Figura : winepulse: Avoid accessing the product name after freeing it.
Module: wine Branch: master Commit: 0d666de0f0baa7aca017a8a340b951fc2588db22 URL: https://gitlab.winehq.org/wine/wine/-/commit/0d666de0f0baa7aca017a8a340b951f... Author: Zebediah Figura <zfigura(a)codeweavers.com> Date: Thu May 4 11:32:26 2023 -0500 winepulse: Avoid accessing the product name after freeing it. --- dlls/winepulse.drv/mmdevdrv.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dlls/winepulse.drv/mmdevdrv.c b/dlls/winepulse.drv/mmdevdrv.c index c3bc02267b5..54d81b4b7e8 100644 --- a/dlls/winepulse.drv/mmdevdrv.c +++ b/dlls/winepulse.drv/mmdevdrv.c @@ -287,8 +287,13 @@ static WCHAR *get_application_name(BOOL query_app_name) } skip: + if (found) + { + name = wcsdup(productname); + free(data); + return name; + } free(data); - if (found) return wcsdup(productname); } name = wcsrchr(path, '\\');
participants (1)
-
Alexandre Julliard