Module: wine Branch: master Commit: b34cd24f7d68309fa69c75ad3bce5681358cceef URL: https://source.winehq.org/git/wine.git/?a=commit;h=b34cd24f7d68309fa69c75ad3...
Author: Gabriel Ivăncescu gabrielopcode@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@gmail.com Signed-off-by: Jacek Caban jacek@codeweavers.com Signed-off-by: Alexandre Julliard julliard@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;