Jacek Caban : msi/tests: Initialize pathkey in test_installprops.
Module: wine Branch: master Commit: 93668319dd63add97036fbb79b5745c699117313 URL: https://gitlab.winehq.org/wine/wine/-/commit/93668319dd63add97036fbb79b5745c... Author: Jacek Caban <jacek(a)codeweavers.com> Date: Fri Nov 17 13:30:11 2023 +0100 msi/tests: Initialize pathkey in test_installprops. It could be used uninitialized on early no access return. --- dlls/msi/tests/package.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/msi/tests/package.c b/dlls/msi/tests/package.c index 3d7569499e5..75bb330db9d 100644 --- a/dlls/msi/tests/package.c +++ b/dlls/msi/tests/package.c @@ -5583,7 +5583,7 @@ static void test_installprops(void) CHAR path[MAX_PATH], buf[MAX_PATH]; DWORD size, type; LANGID langid; - HKEY hkey1, hkey2, pathkey; + HKEY hkey1, hkey2, pathkey = NULL; int res; UINT r; REGSAM access = KEY_ALL_ACCESS;
participants (1)
-
Alexandre Julliard