Allow for non base-10 int values in ini file.

Aric Stewart aric at codeweavers.com
Tue Feb 27 03:15:17 CST 2007


Integer values in the ini files can be non base 10 signaled by having x 
or 0x or the like at the beginning.
---
  dlls/kernel32/profile.c |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)
-------------- next part --------------
diff --git a/dlls/kernel32/profile.c b/dlls/kernel32/profile.c
index 339b852..b48f5e9 100644
--- a/dlls/kernel32/profile.c
+++ b/dlls/kernel32/profile.c
@@ -1288,7 +1288,7 @@ UINT WINAPI GetPrivateProfileIntW( LPCWS
     if (!buffer[0]) return (UINT)def_val;
 
     RtlInitUnicodeString( &bufferW, buffer );
-    RtlUnicodeStringToInteger( &bufferW, 10, &result);
+    RtlUnicodeStringToInteger( &bufferW, 0, &result);
     return result;
 }
 


More information about the wine-patches mailing list