scnaf improvement

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

--- ../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);


[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux