Bail out if the reg key is empty. This prevents us from writing

garbage to the property table.
This commit is contained in:
Aric Stewart 2005-07-22 18:27:41 +00:00 committed by Alexandre Julliard
parent 8a36f2a325
commit 88837b5d8d
1 changed files with 7 additions and 0 deletions

View File

@ -334,6 +334,13 @@ static UINT ACTION_AppSearchReg(MSIPACKAGE *package, BOOL *appFound,
goto end;
}
/* bail out if the registry key is empty */
if (sz == 0)
{
rc = ERROR_SUCCESS;
goto end;
}
switch (regType)
{
case REG_SZ: