James Hawkins : msi: Fail if stg is NULL.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Dec 6 05:48:56 CST 2006


Module: wine
Branch: master
Commit: 00fa70dbc1cdced835f559a847f8dd325334a25d
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=00fa70dbc1cdced835f559a847f8dd325334a25d

Author: James Hawkins <truiken at gmail.com>
Date:   Tue Dec  5 03:44:09 2006 -0800

msi: Fail if stg is NULL.

---

 dlls/msi/database.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/msi/database.c b/dlls/msi/database.c
index 8abed5c..4ef8e85 100644
--- a/dlls/msi/database.c
+++ b/dlls/msi/database.c
@@ -136,7 +136,7 @@ UINT MSI_OpenDatabaseW(LPCWSTR szDBPath,
         return ERROR_INVALID_PARAMETER;
     }
 
-    if( FAILED( r ) )
+    if( FAILED( r ) || !stg )
     {
         FIXME("open failed r = %08x!\n",r);
         return ERROR_FUNCTION_FAILED;




More information about the wine-cvs mailing list