jscript: Use jsstr_flatten to access string buffer in dispex.c.

This commit is contained in:
Jacek Caban 2013-03-26 10:37:31 +01:00 committed by Alexandre Julliard
parent e3d940334f
commit b11d47fc90
1 changed files with 8 additions and 1 deletions

View File

@ -1524,8 +1524,15 @@ HRESULT disp_delete_name(script_ctx_t *ctx, IDispatch *disp, jsstr_t *name, BOOL
jsdisp = iface_to_jsdisp((IUnknown*)disp);
if(jsdisp) {
dispex_prop_t *prop;
const WCHAR *ptr;
hres = find_prop_name(jsdisp, string_hash(name->str), name->str, &prop);
ptr = jsstr_flatten(name);
if(!ptr) {
jsdisp_release(jsdisp);
return E_OUTOFMEMORY;
}
hres = find_prop_name(jsdisp, string_hash(ptr), ptr, &prop);
if(prop) {
hres = delete_prop(prop, ret);
}else {