Control_RunDLL

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

 



Hello,

Control_DoLaunch did not support quoted pathes with blanks. The string were cut at the first blank.

ChangeLog
-------------
	do not break quoted strings in Control_DoLaunch
Index: wine/dlls/shell32/control.c
===================================================================
RCS file: /home/wine/wine/dlls/shell32/control.c,v
retrieving revision 1.6
diff -u -r1.6 control.c
--- wine/dlls/shell32/control.c	31 May 2002 23:25:52 -0000	1.6
+++ wine/dlls/shell32/control.c	22 Oct 2002 18:19:28 -0000
@@ -317,6 +317,7 @@
     char	ch;
     unsigned 	sp = 0;
     char*	extraPmts = NULL;
+    int        quoted = 0;
 
     buffer = HeapAlloc(GetProcessHeap(), 0, strlen(cmd) + 1);
     if (!buffer) return;
@@ -325,7 +326,8 @@
 
     for (;;) {
 	ch = *end;
-	if (ch == ' ' || ch == ',' || ch == '\0') {
+        if (ch == '"') quoted = !quoted;
+	if (!quoted && ch == ' ' || ch == ',' || ch == '\0') {
 	    *end = '\0';
 	    if (beg) {
 	        if (*beg == '@') {
@@ -342,6 +344,9 @@
 	}
 	end++;
     }
+
+    TRACE("cmd %s, extra %s, sp %d\n", buffer, debugstr_a(extraPmts), sp);
+
     Control_LoadApplet(hWnd, buffer, panel);
 
     if (panel->first) {

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

  Powered by Linux