#include <wine/debug.h>
#include <wine/heap.h>
-#include <wine/unicode.h>
WINE_DEFAULT_DEBUG_CHANNEL(wscript);
return;
}
- len = strlenW(string);
+ len = lstrlenW(string);
ret = WriteConsoleW(GetStdHandle(STD_OUTPUT_HANDLE), string, len, &count, NULL);
if(ret) {
static const WCHAR crnlW[] = {'\r','\n'};
if(GetModuleFileNameW(NULL, path, ARRAY_SIZE(path)) == 0)
return E_FAIL;
- pos = strrchrW(path, '\\');
+ pos = wcsrchr(path, '\\');
howMany = pos - path;
if(!(*out_Path = SysAllocStringLen(path, howMany)))
return E_OUTOFMEMORY;
WINE_TRACE("(%p)\n", out_ScriptName);
- scriptName = strrchrW(scriptFullName, '\\');
+ scriptName = wcsrchr(scriptFullName, '\\');
++scriptName;
if(!(*out_ScriptName = SysAllocString(scriptName)))
return E_OUTOFMEMORY;