msi: Avoid accessing uninitialized memory in ACTION_AppSearchReg.
Found by valgrind.
This commit is contained in:
parent
3f70b07870
commit
2eb33f5bcb
|
@ -445,7 +445,8 @@ static UINT ACTION_AppSearchReg(MSIPACKAGE *package, LPWSTR *appValue, MSISIGNAT
|
|||
if (sz == 0)
|
||||
goto end;
|
||||
|
||||
if ((ptr = strchrW((LPWSTR)value, '"')) && (end = strchrW(++ptr, '"')))
|
||||
if ((regType == REG_SZ || regType == REG_EXPAND_SZ) &&
|
||||
(ptr = strchrW((LPWSTR)value, '"')) && (end = strchrW(++ptr, '"')))
|
||||
*end = '\0';
|
||||
else
|
||||
ptr = (LPWSTR)value;
|
||||
|
|
Loading…
Reference in New Issue