msi: Fail if stg is NULL.

This commit is contained in:
James Hawkins 2006-12-05 03:44:09 -08:00 committed by Alexandre Julliard
parent 829e6f14aa
commit 00fa70dbc1
1 changed files with 1 additions and 1 deletions

View File

@ -136,7 +136,7 @@ UINT MSI_OpenDatabaseW(LPCWSTR szDBPath, LPCWSTR szPersist, MSIDATABASE **pdb)
return ERROR_INVALID_PARAMETER; return ERROR_INVALID_PARAMETER;
} }
if( FAILED( r ) ) if( FAILED( r ) || !stg )
{ {
FIXME("open failed r = %08x!\n",r); FIXME("open failed r = %08x!\n",r);
return ERROR_FUNCTION_FAILED; return ERROR_FUNCTION_FAILED;