From ff87f354c45c6e962098be6a88e5cb01ff821941 Mon Sep 17 00:00:00 2001 From: James Hawkins Date: Tue, 9 Dec 2008 00:20:29 -0600 Subject: [PATCH] msi: Fix an uninitialized variable. --- dlls/msi/registry.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/msi/registry.c b/dlls/msi/registry.c index 1f717fdf266..b413b6f768e 100644 --- a/dlls/msi/registry.c +++ b/dlls/msi/registry.c @@ -1777,6 +1777,8 @@ static UINT msi_get_patch_state(LPCWSTR prodcode, LPCWSTR usersid, static const WCHAR szPatches[] = {'P','a','t','c','h','e','s',0}; static const WCHAR szState[] = {'S','t','a','t','e',0}; + *state = MSIPATCHSTATE_INVALID; + /* FIXME: usersid might not be current user */ r = MSIREG_OpenUserDataProductKey(prodcode, &prod, FALSE); if (r != ERROR_SUCCESS)