Commit 82c4fa35 authored by Alexandre Julliard's avatar Alexandre Julliard

jscript: Reorganize StringConstr_value slightly to avoid confusing gcc.

parent 54ec6fca
......@@ -1645,26 +1645,21 @@ static HRESULT StringConstr_value(script_ctx_t *ctx, vdisp_t *jsthis, WORD flags
break;
}
case DISPATCH_CONSTRUCT: {
jsstr_t *str;
jsdisp_t *ret;
if(argc) {
jsstr_t *str;
hres = to_string(ctx, argv[0], &str);
if(FAILED(hres))
return hres;
hres = create_string(ctx, str, &ret);
jsstr_release(str);
}else {
hres = create_string(ctx, jsstr_empty(), &ret);
str = jsstr_empty();
}
if(FAILED(hres))
return hres;
*r = jsval_obj(ret);
break;
hres = create_string(ctx, str, &ret);
if (SUCCEEDED(hres)) *r = jsval_obj(ret);
jsstr_release(str);
return hres;
}
default:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment