jscript: Use jsstr_flush in literal_as_bstr.

This commit is contained in:
Jacek Caban 2013-03-07 11:03:34 +01:00 committed by Alexandre Julliard
parent c3eecec680
commit 324d8b6fa3
1 changed files with 3 additions and 1 deletions

View File

@ -791,7 +791,9 @@ static HRESULT literal_as_bstr(compiler_ctx_t *ctx, literal_t *literal, BSTR *st
if(FAILED(hres))
return hres;
*str = compiler_alloc_bstr(ctx, jsstr->str);
*str = compiler_alloc_bstr_len(ctx, NULL, jsstr_length(jsstr));
if(*str)
jsstr_flush(jsstr, *str);
jsstr_release(jsstr);
break;
}