#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) {
if(res != ERROR_SUCCESS)
return FALSE;
- size = sizeof(fileid)/sizeof(WCHAR);
+ size = ARRAY_SIZE(fileid);
res = RegQueryValueW(hkey, NULL, fileid, &size);
RegCloseKey(hkey);
if(res != ERROR_SUCCESS)
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;
- size = sizeof(progid)/sizeof(WCHAR);
+ size = ARRAY_SIZE(progid);
res = RegQueryValueW(hkey, NULL, progid, &size);
RegCloseKey(hkey);
if(res != ERROR_SUCCESS)
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
{
WINE_FIXME("No file name specified\n");
return 1;
}
- res = GetFullPathNameW(filename, sizeof(scriptFullName)/sizeof(WCHAR), scriptFullName, &filepart);
- if(!res || res > sizeof(scriptFullName)/sizeof(WCHAR))
+ res = GetFullPathNameW(filename, ARRAY_SIZE(scriptFullName), scriptFullName, &filepart);
+ 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;