vbscript: Improve exec_script debug traces.
Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
a4a2e735ec
commit
410154e280
|
@ -2098,6 +2098,7 @@ HRESULT exec_script(script_ctx_t *ctx, BOOL extern_caller, function_t *func, vbd
|
|||
|
||||
heap_pool_init(&exec.heap);
|
||||
|
||||
TRACE("%s(", debugstr_w(func->name));
|
||||
if(func->arg_cnt) {
|
||||
VARIANT *v;
|
||||
unsigned i;
|
||||
|
@ -2110,6 +2111,7 @@ HRESULT exec_script(script_ctx_t *ctx, BOOL extern_caller, function_t *func, vbd
|
|||
|
||||
for(i=0; i < func->arg_cnt; i++) {
|
||||
v = get_arg(dp, i);
|
||||
TRACE("%s%s", i ? ", " : "", debugstr_variant(v));
|
||||
if(V_VT(v) == (VT_VARIANT|VT_BYREF)) {
|
||||
if(func->args[i].by_ref)
|
||||
exec.args[i] = *v;
|
||||
|
@ -2126,6 +2128,7 @@ HRESULT exec_script(script_ctx_t *ctx, BOOL extern_caller, function_t *func, vbd
|
|||
}else {
|
||||
exec.args = NULL;
|
||||
}
|
||||
TRACE(")\n");
|
||||
|
||||
if(func->var_cnt) {
|
||||
exec.vars = heap_alloc_zero(func->var_cnt * sizeof(VARIANT));
|
||||
|
|
Loading…
Reference in New Issue