mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 13:13:00 +00:00
[VBSCRIPT] Sync with Wine Staging 4.0. CORE-15682
This commit is contained in:
parent
4df86f782f
commit
72fa0fd6cc
7 changed files with 14 additions and 12 deletions
|
@ -236,7 +236,7 @@ static HRESULT invoke_builtin(vbdisp_t *This, const builtin_prop_t *prop, WORD f
|
|||
return E_FAIL;
|
||||
}
|
||||
|
||||
assert(argn < sizeof(args)/sizeof(*args));
|
||||
assert(argn < ARRAY_SIZE(args));
|
||||
|
||||
for(i=0; i < argn; i++) {
|
||||
if(V_VT(dp->rgvarg+dp->cArgs-i-1) == (VT_BYREF|VT_VARIANT))
|
||||
|
@ -647,7 +647,7 @@ HRESULT create_procedure_disp(script_ctx_t *ctx, vbscode_t *code, IDispatch **re
|
|||
return E_OUTOFMEMORY;
|
||||
|
||||
desc->ctx = ctx;
|
||||
desc->builtin_prop_cnt = sizeof(procedure_props)/sizeof(*procedure_props);
|
||||
desc->builtin_prop_cnt = ARRAY_SIZE(procedure_props);
|
||||
desc->builtin_props = procedure_props;
|
||||
desc->value_func = &code->main_code;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue