Re: [PATCH] explorer: Fix copy_path_string() when an unnecessary \ follow the path.
20 Nov
2014
20 Nov
'14
12:40 p.m.
On Thu, Nov 20, 2014 at 08:29:17PM +0800, Jactry Zeng wrote:
@@ -639,6 +640,11 @@ static int copy_path_string(LPWSTR target, LPWSTR source) while (*source && *source != ',') target[i++] = *source++; target[i] = 0; } + + last = strlenW(target) - 1; + if (target[0] && target[last] == '\\') + target[last] = 0; + return i; }
You probably want PathRemoveBackslashW() Huw.
20 Nov
20 Nov
1:24 p.m.
New subject: [PATCH] explorer: Fix copy_path_string() when an unnecessary \ follow the path.
Hi Huw, 2014-11-20 20:40 GMT+08:00 Huw Davies <huw(a)codeweavers.com>:
You probably want PathRemoveBackslashW()
Cool! I will send a new one. Thank you! -- Regards, Jactry Zeng
4047
Age (days ago)
4047
Last active (days ago)
1 comments
2 participants
participants (2)
-
Huw Davies -
Jactry Zeng