mirror of
https://github.com/reactos/reactos.git
synced 2025-07-28 11:21:59 +00:00
[VBSCRIPT] Sync with Wine Staging 3.9. CORE-14656
This commit is contained in:
parent
af009ed327
commit
bcea8c65d0
5 changed files with 132 additions and 36 deletions
|
@ -1746,6 +1746,8 @@ void release_vbscode(vbscode_t *code)
|
|||
for(i=0; i < code->bstr_cnt; i++)
|
||||
SysFreeString(code->bstr_pool[i]);
|
||||
|
||||
if(code->context)
|
||||
IDispatch_Release(code->context);
|
||||
heap_pool_free(&code->heap);
|
||||
|
||||
heap_free(code->bstr_pool);
|
||||
|
@ -1758,7 +1760,7 @@ static vbscode_t *alloc_vbscode(compile_ctx_t *ctx, const WCHAR *source)
|
|||
{
|
||||
vbscode_t *ret;
|
||||
|
||||
ret = heap_alloc(sizeof(*ret));
|
||||
ret = heap_alloc_zero(sizeof(*ret));
|
||||
if(!ret)
|
||||
return NULL;
|
||||
|
||||
|
@ -1780,19 +1782,8 @@ static vbscode_t *alloc_vbscode(compile_ctx_t *ctx, const WCHAR *source)
|
|||
|
||||
ret->option_explicit = ctx->parser.option_explicit;
|
||||
|
||||
ret->bstr_pool = NULL;
|
||||
ret->bstr_pool_size = 0;
|
||||
ret->bstr_cnt = 0;
|
||||
ret->pending_exec = FALSE;
|
||||
|
||||
ret->main_code.type = FUNC_GLOBAL;
|
||||
ret->main_code.name = NULL;
|
||||
ret->main_code.code_ctx = ret;
|
||||
ret->main_code.vars = NULL;
|
||||
ret->main_code.var_cnt = 0;
|
||||
ret->main_code.array_cnt = 0;
|
||||
ret->main_code.arg_cnt = 0;
|
||||
ret->main_code.args = NULL;
|
||||
|
||||
list_init(&ret->entry);
|
||||
return ret;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue