msi: Always initialize MsiViewFetch's returned record to zero.
This commit is contained in:
parent
3a91a4a274
commit
15d302c313
|
@ -354,6 +354,10 @@ UINT WINAPI MsiViewFetch(MSIHANDLE hView, MSIHANDLE *record)
|
|||
|
||||
TRACE("%ld %p\n", hView, record);
|
||||
|
||||
if( !record )
|
||||
return ERROR_INVALID_PARAMETER;
|
||||
*record = 0;
|
||||
|
||||
query = msihandle2msiinfo( hView, MSIHANDLETYPE_VIEW );
|
||||
if( !query )
|
||||
return ERROR_INVALID_HANDLE;
|
||||
|
|
Loading…
Reference in New Issue