[PATCH] explorer: Fix copy_path_string() when an unnecessary \ follow the path.
Huw Davies
huw at codeweavers.com
Thu Nov 20 06:40:04 CST 2014
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.
More information about the wine-devel
mailing list