mirror of
https://github.com/reactos/reactos.git
synced 2024-09-28 05:26:58 +00:00
[MSI] Prevent uninitialized variable usage
This commit is contained in:
parent
2fade6ede4
commit
860f96f431
|
@ -592,8 +592,11 @@ UINT WINAPI MsiSourceListGetInfoW( LPCWSTR szProduct, LPCWSTR szUserSid,
|
|||
0, 0, NULL, &size);
|
||||
if (rc != ERROR_SUCCESS)
|
||||
{
|
||||
RegCloseKey(sourcekey);
|
||||
return ERROR_SUCCESS;
|
||||
static WCHAR szEmpty[1] = { '\0' };
|
||||
rc = ERROR_SUCCESS;
|
||||
source = NULL;
|
||||
ptr = szEmpty;
|
||||
goto output_out;
|
||||
}
|
||||
|
||||
source = msi_alloc(size);
|
||||
|
@ -627,7 +630,7 @@ UINT WINAPI MsiSourceListGetInfoW( LPCWSTR szProduct, LPCWSTR szUserSid,
|
|||
else
|
||||
ptr++;
|
||||
}
|
||||
|
||||
output_out:
|
||||
if (szValue)
|
||||
{
|
||||
if (strlenW(ptr) < *pcchValue)
|
||||
|
|
Loading…
Reference in a new issue