jscript: Create non-enumerable properties in jsdisp_propput_const.

This commit is contained in:
Jacek Caban 2012-11-05 15:03:49 +01:00 committed by Alexandre Julliard
parent 7491d480a9
commit 57f7a6fa4e
1 changed files with 2 additions and 2 deletions

View File

@ -273,7 +273,7 @@ static HRESULT ensure_prop_name(jsdisp_t *This, const WCHAR *name, BOOL search_p
else
hres = find_prop_name(This, string_hash(name), name, &prop);
if(SUCCEEDED(hres) && (!prop || prop->type == PROP_DELETED)) {
TRACE("creating prop %s\n", debugstr_w(name));
TRACE("creating prop %s flags %x\n", debugstr_w(name), create_flags);
if(prop) {
prop->type = PROP_JSVAL;
@ -1255,7 +1255,7 @@ HRESULT jsdisp_propput_const(jsdisp_t *obj, const WCHAR *name, jsval_t val)
dispex_prop_t *prop;
HRESULT hres;
hres = ensure_prop_name(obj, name, FALSE, PROPF_ENUM|PROPF_CONST, &prop);
hres = ensure_prop_name(obj, name, FALSE, PROPF_CONST, &prop);
if(FAILED(hres))
return hres;