https://git.reactos.org/?p=reactos.git;a=commitdiff;h=f2df3bf079777d3ac3728…
commit f2df3bf079777d3ac372834ca854730938cee011
Author: Amine Khaldi <amine.khaldi(a)reactos.org>
AuthorDate: Mon Oct 1 00:13:11 2018 +0100
Commit: Amine Khaldi <amine.khaldi(a)reactos.org>
CommitDate: Mon Oct 1 00:13:11 2018 +0100
[WSCRIPT_WINETEST] Sync with Wine Staging 3.17. CORE-15127
---
modules/rostests/winetests/wscript/run.c | 6 +++---
modules/rostests/winetests/wscript/run.js | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/modules/rostests/winetests/wscript/run.c
b/modules/rostests/winetests/wscript/run.c
index 770fd8fd28..16d14ff79f 100644
--- a/modules/rostests/winetests/wscript/run.c
+++ b/modules/rostests/winetests/wscript/run.c
@@ -77,7 +77,7 @@ static HANDLE wscript_process;
static int strcmp_wa(LPCWSTR strw, const char *stra)
{
WCHAR buf[512];
- MultiByteToWideChar(CP_ACP, 0, stra, -1, buf, sizeof(buf)/sizeof(WCHAR));
+ MultiByteToWideChar(CP_ACP, 0, stra, -1, buf, ARRAY_SIZE(buf));
return lstrcmpW(strw, buf);
}
@@ -220,7 +220,7 @@ static HRESULT WINAPI Dispatch_Invoke(IDispatch *iface, DISPID
dispIdMember, REF
ok(pdp->cArgs == 0, "cArgs = %d\n", pdp->cArgs);
ok(!pdp->cNamedArgs, "cNamedArgs = %d\n", pdp->cNamedArgs);
V_VT(pVarResult) = VT_BSTR;
- res = GetModuleFileNameExW(wscript_process, NULL, fullName,
sizeof(fullName)/sizeof(WCHAR));
+ res = GetModuleFileNameExW(wscript_process, NULL, fullName,
ARRAY_SIZE(fullName));
if(res == 0)
return E_FAIL;
if(!(V_BSTR(pVarResult) = SysAllocString(fullName)))
@@ -237,7 +237,7 @@ static HRESULT WINAPI Dispatch_Invoke(IDispatch *iface, DISPID
dispIdMember, REF
ok(pdp->cArgs == 0, "cArgs = %d\n", pdp->cArgs);
ok(!pdp->cNamedArgs, "cNamedArgs = %d\n", pdp->cNamedArgs);
V_VT(pVarResult) = VT_BSTR;
- res = GetModuleFileNameExW(wscript_process, NULL, fullPath,
sizeof(fullPath)/sizeof(WCHAR));
+ res = GetModuleFileNameExW(wscript_process, NULL, fullPath,
ARRAY_SIZE(fullPath));
if(res == 0)
return E_FAIL;
pos = mystrrchr(fullPath, '\\');
diff --git a/modules/rostests/winetests/wscript/run.js
b/modules/rostests/winetests/wscript/run.js
index 5a5539b173..a812a85c9e 100644
--- a/modules/rostests/winetests/wscript/run.js
+++ b/modules/rostests/winetests/wscript/run.js
@@ -27,7 +27,7 @@ ok(typeof(WSH) === "object", "typeof(WSH) = " +
typeof(WSH));
ok(WScript === WSH, "WScript !== WSH");
ok(WScript.Name === "Windows Script Host", "WScript.Name = " +
WScript.Name);
ok(typeof(WScript.Version) === "string", "typeof(WScript.Version) = "
+ typeof(WScript.Version));
-ok(typeof(WScript.BuildVersion) === "number", "typeof(WScript.BuldVersion)
= " + typeof(WScript.BuldVersion));
+ok(typeof(WScript.BuildVersion) === "number",
"typeof(WScript.BuildVersion) = " + typeof(WScript.BuildVersion));
ok(WScript.FullName.toUpperCase() === winetest.wscriptFullName.toUpperCase(),
"WScript.FullName = " + WScript.FullName);
ok(WScript.Path.toUpperCase() === winetest.wscriptPath.toUpperCase(), "WScript.Path
= " + WScript.Path);
ok(WScript.ScriptName === winetest.wscriptScriptName, "WScript.ScriptName = " +
WScript.ScriptName);