msi: Fail if stg is NULL.
This commit is contained in:
parent
829e6f14aa
commit
00fa70dbc1
|
@ -136,7 +136,7 @@ UINT MSI_OpenDatabaseW(LPCWSTR szDBPath, LPCWSTR szPersist, MSIDATABASE **pdb)
|
|||
return ERROR_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
if( FAILED( r ) )
|
||||
if( FAILED( r ) || !stg )
|
||||
{
|
||||
FIXME("open failed r = %08x!\n",r);
|
||||
return ERROR_FUNCTION_FAILED;
|
||||
|
|
Loading…
Reference in New Issue