MSI: MsiEvaluateCondition returns an error when passed NULL as a condition

Mike McCormack mike at codeweavers.com
Tue Feb 1 23:17:30 CST 2005


ChangeLog:
* MsiEvaluateCondition returns an error when passed NULL as a condition
-------------- next part --------------
Index: dlls/msi/cond.y
===================================================================
RCS file: /home/wine/wine/dlls/msi/cond.y,v
retrieving revision 1.13
diff -u -p -r1.13 cond.y
--- dlls/msi/cond.y	20 Jan 2005 10:36:35 -0000	1.13
+++ dlls/msi/cond.y	2 Feb 2005 05:16:00 -0000
@@ -731,7 +731,7 @@ MSICONDITION MSI_EvaluateConditionW( MSI
     
     TRACE("Evaluating %s\n",debugstr_w(szCondition));    
 
-    if( !COND_parse( &cond ) )
+    if( szCondition && !COND_parse( &cond ) )
         r = cond.result;
     else
         r = MSICONDITION_ERROR;


More information about the wine-patches mailing list