Commit 00fa70db authored by James Hawkins's avatar James Hawkins Committed by Alexandre Julliard

msi: Fail if stg is NULL.

parent 829e6f14
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment