Module: wine Branch: master Commit: ed1065047234c6c8c17072e0644bb026f02b64fd URL: http://source.winehq.org/git/wine.git/?a=commit;h=ed1065047234c6c8c17072e064...
Author: Jacek Caban jacek@codeweavers.com Date: Sun Nov 1 19:21:19 2009 +0100
mshtml: Don't create dynamic property if alloc arg is false.
---
dlls/mshtml/dispex.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/mshtml/dispex.c b/dlls/mshtml/dispex.c index 0a0f6c6..980b13b 100644 --- a/dlls/mshtml/dispex.c +++ b/dlls/mshtml/dispex.c @@ -390,6 +390,9 @@ static HRESULT get_dynamic_prop(DispatchEx *This, const WCHAR *name, DWORD flags } }
+ if(!alloc) + return DISP_E_UNKNOWNNAME; + TRACE("creating dynamic prop %s\n", debugstr_w(name));
if(!data->buf_size) {