Alistair Leslie-Hughes <leslie_alist...@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 julli...@winehq.org