[PATCH 1/5] jscript: Set the DISPID to DISPID_UNKNOWN if unknown.

Gabriel Ivăncescu gabrielopcode at gmail.com
Wed Nov 6 09:27:59 CST 2019


Signed-off-by: Gabriel Ivăncescu <gabrielopcode at gmail.com>
---

Will be needed to pass the tests at the end of the series.

 dlls/jscript/dispex.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/jscript/dispex.c b/dlls/jscript/dispex.c
index da23d18..3c27330 100644
--- a/dlls/jscript/dispex.c
+++ b/dlls/jscript/dispex.c
@@ -1083,6 +1083,7 @@ HRESULT jsdisp_get_id(jsdisp_t *jsdisp, const WCHAR *name, DWORD flags, DISPID *
     }
 
     TRACE("not found %s\n", debugstr_w(name));
+    *id = DISPID_UNKNOWN;
     return DISP_E_UNKNOWNNAME;
 }
 
-- 
2.21.0




More information about the wine-devel mailing list