Module: wine Branch: master Commit: 9e7829828ee32421974507f83091fd26668534f5 URL: http://source.winehq.org/git/wine.git/?a=commit;h=9e7829828ee32421974507f830...
Author: Jacek Caban jacek@codeweavers.com Date: Mon Sep 17 15:21:16 2012 +0200
jscript: Don't assume that undefined variable is zeroed.
---
dlls/jscript/dispex.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/jscript/dispex.c b/dlls/jscript/dispex.c index ae369c2..d10c675 100644 --- a/dlls/jscript/dispex.c +++ b/dlls/jscript/dispex.c @@ -272,12 +272,13 @@ static HRESULT ensure_prop_name(jsdisp_t *This, const WCHAR *name, BOOL search_p hres = find_prop_name_prot(This, string_hash(name), name, &prop); else hres = find_prop_name(This, string_hash(name), name, &prop); - if(SUCCEEDED(hres) && (!prop || prop->type==PROP_DELETED)) { + if(SUCCEEDED(hres) && (!prop || prop->type == PROP_DELETED)) { TRACE("creating prop %s\n", debugstr_w(name));
if(prop) { prop->type = PROP_JSVAL; prop->flags = create_flags; + prop->u.val = jsval_undefined(); }else { prop = alloc_prop(This, name, PROP_JSVAL, create_flags); if(!prop)