shell32

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

 



Hello,

as diskussed on wine-patches:
LoadLibrary does not accept quoated filenames

ChangeLog:
-------------
	remove quotes from filename before calling LoadLibrary in DoLaunch (shell32)

Index: wine/dlls/shell32/control.c
===================================================================
RCS file: /home/wine/wine/dlls/shell32/control.c,v
retrieving revision 1.7
diff -u -r1.7 control.c
--- wine/dlls/shell32/control.c	23 Oct 2002 18:44:13 -0000	1.7
+++ wine/dlls/shell32/control.c	26 Oct 2002 16:54:52 -0000
@@ -309,12 +309,14 @@
     *	foo.cpl,,str
     *	foo.cpl @sp
     *	foo.cpl str
+    *   "a path\foo.cpl"
     */
 {
     char*	buffer;
     char*	beg = NULL;
     char*	end;
     char	ch;
+    char*       ptr;
     unsigned 	sp = 0;
     char*	extraPmts = NULL;
     int        quoted = 0;
@@ -344,6 +346,8 @@
 	}
 	end++;
     }
+    while (ptr = strchr(buffer, (int) '"'))
+	memmove(ptr, ptr+1, strlen(ptr));
 
     TRACE("cmd %s, extra %s, sp %d\n", buffer, debugstr_a(extraPmts), sp);
 


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

  Powered by Linux