msi: Always initialize MsiViewFetch's returned record to zero.

This commit is contained in:
Mike McCormack 2006-06-11 09:51:29 +09:00 committed by Alexandre Julliard
parent 3a91a4a274
commit 15d302c313
1 changed files with 4 additions and 0 deletions

View File

@ -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;