Handling number literals in MSI conditions
Aric Stewart
aric at codeweavers.com
Mon Jul 12 15:33:49 CDT 2004
Properly handle quoted number literals in MSI condition statments
-aric
-------------- next part --------------
Index: cond.y
===================================================================
RCS file: /home/wine/wine/dlls/msi/cond.y,v
retrieving revision 1.9
diff -u -w -r1.9 cond.y
--- cond.y 9 Jul 2004 22:58:27 -0000 1.9
+++ cond.y 12 Jul 2004 20:33:13 -0000
@@ -399,6 +399,11 @@
{
$$ = $2;
}
+ | COND_DBLQ integer COND_DBLQ
+ {
+ static const WCHAR pi[] = {'%','i',0};
+ sprintfW($$,pi,$2);
+ }
;
symbol_i:
@@ -501,7 +506,7 @@
static int COND_IsNumber( WCHAR x )
{
- return( ( x >= '0' ) && ( x <= '9' ) );
+ return( (( x >= '0' ) && ( x <= '9' )) || (x =='-') );
}
More information about the wine-patches
mailing list