diff --git a/dlls/msi/database.c b/dlls/msi/database.c index 8abed5c77bc..4ef8e852838 100644 --- a/dlls/msi/database.c +++ b/dlls/msi/database.c @@ -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;