#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;
#include "wscript.h"
#include <wine/debug.h>
-#include <wine/unicode.h>
#ifdef _WIN64
{
WINE_TRACE("(%s %x %p %p)\n", wine_dbgstr_w(pstrName), dwReturnMask, ppunkItem, ppti);
- if(strcmpW(pstrName, wshW) && strcmpW(pstrName, wscriptW))
+ if(lstrcmpW(pstrName, wshW) && lstrcmpW(pstrName, wscriptW))
return E_FAIL;
if(dwReturnMask & SCRIPTINFO_ITYPEINFO) {
WINE_TRACE("fileid is %s\n", wine_dbgstr_w(fileid));
- strcatW(fileid, script_engineW);
+ lstrcatW(fileid, script_engineW);
res = RegOpenKeyW(HKEY_CLASSES_ROOT, fileid, &hkey);
if(res != ERROR_SUCCESS)
return FALSE;
else
++prop;
- if(strcmpiW(prop, iactive) == 0)
+ if(wcsicmp(prop, iactive) == 0)
wshInteractive = VARIANT_TRUE;
- else if(strcmpiW(prop, batch) == 0)
+ else if(wcsicmp(prop, batch) == 0)
wshInteractive = VARIANT_FALSE;
- else if(strcmpiW(prop, nologoW) == 0)
+ else if(wcsicmp(prop, nologoW) == 0)
WINE_FIXME("ignored %s switch\n", debugstr_w(nologoW));
else
{
if(!res || res > ARRAY_SIZE(scriptFullName))
return 1;
- ext = strrchrW(filepart, '.');
+ ext = wcsrchr(filepart, '.');
if(!ext || !get_engine_clsid(ext, &clsid)) {
WINE_FIXME("Could not find engine for %s\n", wine_dbgstr_w(ext));
return 1;
ReactOS shares the following programs with Winehq.
-base/applications/cmdutils/cscript # Synced to WineStaging-3.17
+base/applications/cmdutils/cscript # Synced to WineStaging-4.18
base/applications/cmdutils/reg # Synced to WineStaging-3.17
base/applications/cmdutils/schtasks # Synced to WineStaging-3.3
base/applications/cmdutils/taskkill # Synced to WineStaging-3.17
base/applications/cmdutils/wmic # Synced to WineStaging-4.0
-base/applications/cmdutils/wscript # Synced to WineStaging-3.17
+base/applications/cmdutils/wscript # Synced to WineStaging-4.18
base/applications/cmdutils/xcopy # Synced to WineStaging-3.17
base/applications/games/winmine # Synced to WineStaging-2.16 with our own resources.
base/applications/extrac32 # Synced to WineStaging-4.0