[PATCH 06/21] vbscript: Added function arguments compiler implementation

Octavian Voicu octavian.voicu at gmail.com
Wed Sep 14 06:47:48 CDT 2011


On Wed, Sep 14, 2011 at 1:56 PM, Jacek Caban <jacek at codeweavers.com> wrote:
> --- a/dlls/vbscript/compile.c
> +++ b/dlls/vbscript/compile.c
> @@ -658,9 +658,26 @@ static HRESULT create_function(compile_ctx_t *ctx, function_decl_t *decl, functi
>      func->code_ctx = ctx->code;
>      func->type = decl->type;
>
> +    func->arg_cnt = 0;
>      if(decl->args) {
...
> +    }else {
> +        decl->args = NULL;

I think you want to set func->args to NULL at the last line.

Cheers,
Octavian



More information about the wine-devel mailing list