Gabriel Ivăncescu : msscript.ocx: Fail if the module array failed to allocate.
Alexandre Julliard
julliard at winehq.org
Wed Jun 24 15:47:35 CDT 2020
Module: wine
Branch: master
Commit: b34cd24f7d68309fa69c75ad3bce5681358cceef
URL: https://source.winehq.org/git/wine.git/?a=commit;h=b34cd24f7d68309fa69c75ad3bce5681358cceef
Author: Gabriel Ivăncescu <gabrielopcode at gmail.com>
Date: Wed Jun 24 17:16:47 2020 +0300
msscript.ocx: Fail if the module array failed to allocate.
Signed-off-by: Gabriel Ivăncescu <gabrielopcode at gmail.com>
Signed-off-by: Jacek Caban <jacek at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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 fd2ada5708..4e9e5afa4d 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;
More information about the wine-cvs
mailing list