https://git.reactos.org/?p=reactos.git;a=commitdiff;h=c6f49f5394683f3420550…
commit c6f49f5394683f3420550271129d725bbe544552
Author: Thomas Faber <thomas.faber(a)reactos.org>
AuthorDate: Mon Jun 4 20:25:13 2018 +0200
Commit: Thomas Faber <thomas.faber(a)reactos.org>
CommitDate: Mon Jun 4 20:26:14 2018 +0200
[JSCRIPT] Fix MSVC build.
---
dll/win32/jscript/dispex.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/dll/win32/jscript/dispex.c b/dll/win32/jscript/dispex.c
index 9b47368cf8..65ca47a515 100644
--- a/dll/win32/jscript/dispex.c
+++ b/dll/win32/jscript/dispex.c
@@ -1793,6 +1793,7 @@ HRESULT jsdisp_define_property(jsdisp_t *obj, const WCHAR *name,
property_desc_t
HRESULT jsdisp_define_data_property(jsdisp_t *obj, const WCHAR *name, unsigned flags,
jsval_t value)
{
- property_desc_t prop_desc = { flags, flags, TRUE, value };
+ property_desc_t prop_desc = { flags, flags, TRUE };
+ prop_desc.value = value;
return jsdisp_define_property(obj, name, &prop_desc);
}