shlexec - skip argument identifier

Vitaliy Margolen wine-patch at kievinfo.com
Wed Oct 13 19:44:58 CDT 2004


Oops, resend with the right patch.

Vitaliy Margolen

Wednesday, October 13, 2004, 5:58:22 AM, Vitaliy Margolen wrote:

> Second char of argument identifier was getting into program name:
> wine start http://yahoo.com
> was executing:
> winebrowser \"http://yahoo.com\"1

> Vitaliy Margolen

> changelog:
>   dlls/shel32/shlexec.com
>   fix parameter parsing
-------------- next part --------------
Index: dlls/shell32/shlexec.c
===================================================================
RCS file: /home/wine/wine/dlls/shell32/shlexec.c,v
retrieving revision 1.54
diff -u -r1.54 shlexec.c
--- dlls/shell32/shlexec.c	14 Sep 2004 20:14:09 -0000	1.54
+++ dlls/shell32/shlexec.c	13 Oct 2004 11:55:04 -0000
@@ -94,7 +94,8 @@
     {
         if (*fmt == '%')
         {
-            switch (*++fmt)
+	    fmt++;
+            switch (*fmt++)
             {
             case '\0':
             case '%':


More information about the wine-patches mailing list