Module: wine Branch: master Commit: 55525875a5453c9fd2fc7610e3c17839b7bb9d5f URL: https://gitlab.winehq.org/wine/wine/-/commit/55525875a5453c9fd2fc7610e3c1783...
Author: Alex Henrie alexhenrie24@gmail.com Date: Tue Jul 2 23:40:00 2024 -0600
msi: Initialize size argument to RegGetValueW.
---
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);