mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 04:20:56 +00:00
jscript: Reorganize StringConstr_value slightly to avoid confusing gcc.
This commit is contained in:
parent
54ec6fca6e
commit
82c4fa35aa
|
@ -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))
|
||||
hres = create_string(ctx, str, &ret);
|
||||
if (SUCCEEDED(hres)) *r = jsval_obj(ret);
|
||||
jsstr_release(str);
|
||||
return hres;
|
||||
|
||||
*r = jsval_obj(ret);
|
||||
break;
|
||||
}
|
||||
|
||||
default:
|
||||
|
|
Loading…
Reference in a new issue