mirror of
https://github.com/reactos/reactos.git
synced 2024-10-02 07:26:47 +00:00
[WSCRIPT_WINETEST] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66956
This commit is contained in:
parent
0b7f1f2a68
commit
0727fc1781
|
@ -256,10 +256,10 @@ static HRESULT WINAPI Dispatch_Invoke(IDispatch *iface, DISPID dispIdMember, REF
|
||||||
ok(pdp->cArgs == 0, "cArgs = %d\n", pdp->cArgs);
|
ok(pdp->cArgs == 0, "cArgs = %d\n", pdp->cArgs);
|
||||||
ok(!pdp->cNamedArgs, "cNamedArgs = %d\n", pdp->cNamedArgs);
|
ok(!pdp->cNamedArgs, "cNamedArgs = %d\n", pdp->cNamedArgs);
|
||||||
V_VT(pVarResult) = VT_BSTR;
|
V_VT(pVarResult) = VT_BSTR;
|
||||||
res = GetFullPathNameA(script_name, sizeof(fullPath)/sizeof(WCHAR), fullPath, &pos);
|
res = GetFullPathNameA(script_name, sizeof(fullPath), fullPath, &pos);
|
||||||
if(!res || res > sizeof(fullPath)/sizeof(WCHAR))
|
if(!res || res > sizeof(fullPath))
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
if(!(V_BSTR(pVarResult) = SysAllocString(a2bstr(pos))))
|
if(!(V_BSTR(pVarResult) = a2bstr(pos)))
|
||||||
return E_OUTOFMEMORY;
|
return E_OUTOFMEMORY;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -272,10 +272,10 @@ static HRESULT WINAPI Dispatch_Invoke(IDispatch *iface, DISPID dispIdMember, REF
|
||||||
ok(pdp->cArgs == 0, "cArgs = %d\n", pdp->cArgs);
|
ok(pdp->cArgs == 0, "cArgs = %d\n", pdp->cArgs);
|
||||||
ok(!pdp->cNamedArgs, "cNamedArgs = %d\n", pdp->cNamedArgs);
|
ok(!pdp->cNamedArgs, "cNamedArgs = %d\n", pdp->cNamedArgs);
|
||||||
V_VT(pVarResult) = VT_BSTR;
|
V_VT(pVarResult) = VT_BSTR;
|
||||||
res = GetFullPathNameA(script_name, sizeof(fullPath)/sizeof(WCHAR), fullPath, NULL);
|
res = GetFullPathNameA(script_name, sizeof(fullPath), fullPath, NULL);
|
||||||
if(!res || res > sizeof(fullPath)/sizeof(WCHAR))
|
if(!res || res > sizeof(fullPath))
|
||||||
return E_FAIL;
|
return E_FAIL;
|
||||||
if(!(V_BSTR(pVarResult) = SysAllocString(a2bstr(fullPath))))
|
if(!(V_BSTR(pVarResult) = a2bstr(fullPath)))
|
||||||
return E_OUTOFMEMORY;
|
return E_OUTOFMEMORY;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue