[PATCH] kernel32: Add forward slash path handling to GetVolumePathNameW.

Zebediah Figura z.figura12 at gmail.com
Sun Mar 11 10:20:23 CDT 2018


On 11/03/18 07:22, Mark White wrote:
> +    /* forward slash backslash replace */
> +    for (fwdslash = volumenameW; *fwdslash; fwdslash++) if (*fwdslash == '/') *fwdslash = '\\';

Hello Mark, and thank you for contributing to Wine!

As stated on that bug report, I think a better solution is to use
GetFullPathName() instead. Testing shows that GetVolumePathName() should
also handle relative paths (and currently doesn't), and
GetFullPathName() would take care of both problems.

ἔρρωσο,
Zeb



More information about the wine-devel mailing list