Author: akhaldi
Date: Sun Mar 29 13:54:08 2015
New Revision: 66956
URL:
http://svn.reactos.org/svn/reactos?rev=66956&view=rev
Log:
[WSCRIPT_WINETEST] Sync with Wine Staging 1.7.37. CORE-9246
Modified:
trunk/rostests/winetests/wscript/run.c
Modified: trunk/rostests/winetests/wscript/run.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rostests/winetests/wscript/run.c?r…
==============================================================================
--- trunk/rostests/winetests/wscript/run.c [iso-8859-1] (original)
+++ trunk/rostests/winetests/wscript/run.c [iso-8859-1] Sun Mar 29 13:54:08 2015
@@ -256,10 +256,10 @@
ok(pdp->cArgs == 0, "cArgs = %d\n", pdp->cArgs);
ok(!pdp->cNamedArgs, "cNamedArgs = %d\n", pdp->cNamedArgs);
V_VT(pVarResult) = VT_BSTR;
- res = GetFullPathNameA(script_name, sizeof(fullPath)/sizeof(WCHAR), fullPath,
&pos);
- if(!res || res > sizeof(fullPath)/sizeof(WCHAR))
+ res = GetFullPathNameA(script_name, sizeof(fullPath), fullPath, &pos);
+ if(!res || res > sizeof(fullPath))
return E_FAIL;
- if(!(V_BSTR(pVarResult) = SysAllocString(a2bstr(pos))))
+ if(!(V_BSTR(pVarResult) = a2bstr(pos)))
return E_OUTOFMEMORY;
break;
}
@@ -272,10 +272,10 @@
ok(pdp->cArgs == 0, "cArgs = %d\n", pdp->cArgs);
ok(!pdp->cNamedArgs, "cNamedArgs = %d\n", pdp->cNamedArgs);
V_VT(pVarResult) = VT_BSTR;
- res = GetFullPathNameA(script_name, sizeof(fullPath)/sizeof(WCHAR), fullPath,
NULL);
- if(!res || res > sizeof(fullPath)/sizeof(WCHAR))
+ res = GetFullPathNameA(script_name, sizeof(fullPath), fullPath, NULL);
+ if(!res || res > sizeof(fullPath))
return E_FAIL;
- if(!(V_BSTR(pVarResult) = SysAllocString(a2bstr(fullPath))))
+ if(!(V_BSTR(pVarResult) = a2bstr(fullPath)))
return E_OUTOFMEMORY;
break;
}