msxml3: Support loading windows file path under wine (resend)
Alexandre Julliard
julliard at winehq.org
Fri Aug 14 05:21:48 CDT 2009
Alistair Leslie-Hughes <leslie_alistair at hotmail.com> writes:
> +static int wineXmlMatchCallback (char const * filename)
> +{
> + static const WCHAR sColon[] = {':',0};
> + BSTR sFilename = bstr_from_xmlChar( (xmlChar*)filename);
> + int nRet = 0;
> +
> + TRACE("%s\n", debugstr_w(sFilename));
> +
> + /*
> + * We will deal with loading XML files from the file system
> + * We only care about files that linux cannot find.
> + * e.g. C:,D: etc
> + */
> + if(isalphaW(sFilename[0]) && sFilename[1] == sColon[0])
> + nRet = 1;
> +
> + SysFreeString(sFilename);
It doesn't make sense to convert the string to Unicode just to check for
a drive letter. Also the sColon string is clearly useless.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list