Bail out if the reg key is empty. This prevents us from writing
garbage to the property table.
This commit is contained in:
parent
8a36f2a325
commit
88837b5d8d
|
@ -334,6 +334,13 @@ static UINT ACTION_AppSearchReg(MSIPACKAGE *package, BOOL *appFound,
|
||||||
goto end;
|
goto end;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* bail out if the registry key is empty */
|
||||||
|
if (sz == 0)
|
||||||
|
{
|
||||||
|
rc = ERROR_SUCCESS;
|
||||||
|
goto end;
|
||||||
|
}
|
||||||
|
|
||||||
switch (regType)
|
switch (regType)
|
||||||
{
|
{
|
||||||
case REG_SZ:
|
case REG_SZ:
|
||||||
|
|
Loading…
Reference in New Issue