jscript: Create Array objects from proper constructor.

This commit is contained in:
Jacek Caban 2009-08-28 23:53:45 +02:00 committed by Alexandre Julliard
parent 73e192a6b3
commit 90af81f405
1 changed files with 1 additions and 1 deletions

View File

@ -872,7 +872,7 @@ static HRESULT alloc_array(script_ctx_t *ctx, DispatchEx *object_prototype, Arra
if(object_prototype)
hres = init_dispex(&array->dispex, ctx, &Array_info, object_prototype);
else
hres = init_dispex_from_constr(&array->dispex, ctx, &Array_info, ctx->object_constr);
hres = init_dispex_from_constr(&array->dispex, ctx, &Array_info, ctx->array_constr);
if(FAILED(hres)) {
heap_free(array);