[PATCH v2 0/1] MR5981: msi: Initialize size argument to RegGetValueW.
Split from !5969 -- v2: msi: Initialize size argument to RegGetValueW. https://gitlab.winehq.org/wine/wine/-/merge_requests/5981
From: Alex Henrie <alexhenrie24(a)gmail.com> --- dlls/msi/registry.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/msi/registry.c b/dlls/msi/registry.c index 149f9cf9945..ad220eaa756 100644 --- a/dlls/msi/registry.c +++ b/dlls/msi/registry.c @@ -1846,6 +1846,7 @@ static UINT check_product_patches(const WCHAR *prodcode, const WCHAR *usersid, M RegOpenKeyExW(localprod, L"Patches", 0, KEY_READ, &localpatch) == ERROR_SUCCESS && RegOpenKeyExW(localpatch, ptr, 0, KEY_READ, &patchkey) == ERROR_SUCCESS) { + size = sizeof(state); res = RegGetValueW(patchkey, NULL, L"State", RRF_RT_REG_DWORD, &type, &state, &size); -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/5981
This merge request was approved by Hans Leidekker. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/5981
participants (3)
-
Alex Henrie -
Alex Henrie (@alexhenrie) -
Hans Leidekker (@hans)