From: Jactry Zeng Subject: [PATCH] explorer: Remove unnecessary backslash when parsing /select and /root. (try 2) Message-Id: <546DEB15.5010309@codeweavers.com> Date: Thu, 20 Nov 2014 21:22:29 +0800 Hi folks, This patch is for fixing bugs of /root and /select option from explorer and this bug affects QQ 6.2. You can reproduce them by: 1. /select wine cmd: $ explorer /select,C:\windows\win.ini\ Correctly, it should open "C:\\windows\\" with explorer. But wine explorer uses notepad to open "C:\\windows\\win.ini". 2. /root wine cmd: $ explorer /root,C:\windows\win.ini\ Correctly, it should open "C:\\windows\\win.ini" with notepad. But wine explorer uses notepad to open "C:\\windows\\win.ini\\". Superseded patch 107798. Thanks Huw! --- programs/explorer/explorer.c | 1 + 1 file changed, 1 insertion(+) diff --git a/programs/explorer/explorer.c b/programs/explorer/explorer.c index 1b900d0..a4f93bc 100644 --- a/programs/explorer/explorer.c +++ b/programs/explorer/explorer.c @@ -639,6 +639,7 @@ static int copy_path_string(LPWSTR target, LPWSTR source) while (*source && *source != ',') target[i++] = *source++; target[i] = 0; } + PathRemoveBackslashW(target); return i; }