winefile: Do not use wide character constants.
This commit is contained in:
parent
e3708a60b4
commit
699df04e85
|
@ -33,18 +33,18 @@ void _wsplitpath(const WCHAR* path, WCHAR* drv, WCHAR* dir, WCHAR* name, WCHAR*
|
||||||
if (drv) {
|
if (drv) {
|
||||||
*drv++ = *path++;
|
*drv++ = *path++;
|
||||||
*drv++ = *path++;
|
*drv++ = *path++;
|
||||||
*drv = L'\0';
|
*drv = '\0';
|
||||||
}
|
}
|
||||||
} else if (drv)
|
} else if (drv)
|
||||||
*drv = L'\0';
|
*drv = '\0';
|
||||||
|
|
||||||
/* search for end of string or stream separator */
|
/* search for end of string or stream separator */
|
||||||
for(end=path; *end && *end!=L':'; )
|
for(end=path; *end && *end!=':'; )
|
||||||
end++;
|
end++;
|
||||||
|
|
||||||
/* search for begin of file extension */
|
/* search for begin of file extension */
|
||||||
for(p=end; p>path && *--p!=L'\\' && *p!=L'/'; )
|
for(p=end; p>path && *--p!='\\' && *p!='/'; )
|
||||||
if (*p == L'.') {
|
if (*p == '.') {
|
||||||
end = p;
|
end = p;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -64,14 +64,14 @@ void _wsplitpath(const WCHAR* path, WCHAR* drv, WCHAR* dir, WCHAR* name, WCHAR*
|
||||||
for(s=p; s<end; )
|
for(s=p; s<end; )
|
||||||
*name++ = *s++;
|
*name++ = *s++;
|
||||||
|
|
||||||
*name = L'\0';
|
*name = '\0';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (dir) {
|
if (dir) {
|
||||||
for(s=path; s<p; )
|
for(s=path; s<p; )
|
||||||
*dir++ = *s++;
|
*dir++ = *s++;
|
||||||
|
|
||||||
*dir = L'\0';
|
*dir = '\0';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue