scnaf improvement
György 'Nog' Jeney
nog at sdf.lonestar.org
Wed Dec 18 13:17:30 CST 2002
The installer to the game incubation passes a path in quets to the sscanf
function with a format specifier of %"%[... This causes the installer to
fail. I wonder if we shouldnt handle all non-format chars like msdn
documents to avoid haveing to add hacks like this in the code...
ChangeLog:
* dlls/msvcrt/scanf.h
Add " as an acceptable format.
nog.
-------------- next part --------------
--- ../cleanwine/dlls/msvcrt/scanf.h 2002-10-15 04:20:07.000000000 +0200
+++ dlls/msvcrt/scanf.h 2002-12-18 19:12:33.000000000 +0200
@@ -152,10 +152,11 @@
}
/* read type */
switch(*format) {
+ case _L_('"'): /* read a " symbol */
case _L_('%'): { /* read a percent symbol */
while ((nch!=_EOF_) && _ISSPACE_(nch))
nch = _GETC_(file);
- if (nch==_L_('%')) {
+ if (nch==*format) {
suppress = 1; /* whoops no field to be read */
st = 1; /* but we got what we expected */
nch = _GETC_(file);
More information about the wine-patches
mailing list