Module: wine Branch: master Commit: 1e8f4c059befe4a026ddf5c56e81d720b35c6c2f URL: https://source.winehq.org/git/wine.git/?a=commit;h=1e8f4c059befe4a026ddf5c56...
Author: Jacek Caban jacek@codeweavers.com Date: Thu Feb 28 21:34:01 2019 +0100
jscript: Use flatten string in create_regexp debug traces.
Signed-off-by: Jacek Caban jacek@codeweavers.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/jscript/jsregexp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/jscript/jsregexp.c b/dlls/jscript/jsregexp.c index 8436069..d4ee506 100644 --- a/dlls/jscript/jsregexp.c +++ b/dlls/jscript/jsregexp.c @@ -647,12 +647,12 @@ HRESULT create_regexp(script_ctx_t *ctx, jsstr_t *src, DWORD flags, jsdisp_t **r const WCHAR *str; HRESULT hres;
- TRACE("%s %x\n", debugstr_jsstr(src), flags); - str = jsstr_flatten(src); if(!str) return E_OUTOFMEMORY;
+ TRACE("%s %x\n", debugstr_wn(str, jsstr_length(src)), flags); + hres = alloc_regexp(ctx, NULL, ®exp); if(FAILED(hres)) return hres;