[PATCH v6 02/12] msscript.ocx: Fail if the module array failed to allocate.
Gabriel Ivăncescu
gabrielopcode at gmail.com
Wed Jun 24 09:16:47 CDT 2020
Signed-off-by: Gabriel Ivăncescu <gabrielopcode at gmail.com>
---
dlls/msscript.ocx/msscript.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/dlls/msscript.ocx/msscript.c b/dlls/msscript.ocx/msscript.c
index fd2ada5..4e9e5af 100644
--- a/dlls/msscript.ocx/msscript.c
+++ b/dlls/msscript.ocx/msscript.c
@@ -1202,6 +1202,9 @@ static HRESULT WINAPI ScriptControl_put_Language(IScriptControl *iface, BSTR lan
hres = E_OUTOFMEMORY;
}
}
+ else
+ hres = E_OUTOFMEMORY;
+
if (FAILED(hres)) {
detach_script_host(This->host);
This->host = NULL;
--
2.21.0
More information about the wine-devel
mailing list