msi: Fix an uninitialized variable.

This commit is contained in:
James Hawkins 2008-12-09 00:20:29 -06:00 committed by Alexandre Julliard
parent cd616409ba
commit ff87f354c4
1 changed files with 2 additions and 0 deletions

View File

@ -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)