Host_Quit implementation in wscript

Jacek Caban jacek at codeweavers.com
Mon Jun 27 10:28:40 CDT 2016


Hi Thiago,

On 27.06.2016 06:21, Thiago Barbato wrote:
> I tried running a .js with a WScript.Quit() call and noticed it isn't
> implemented
> yet in programs/wscript/host.c. Would a simple ExitProcess( ExitCode )
> do the job
> or are there cases where this would be the wrong thing to do?

Ideally, we should properly close script engines so that they have a
chance for proper clean up. It may not be critical for engines
themselves, but we can't know what other COM objects are used by scripts.

That said, I'd be fine with ExitProcess() as a temporary solution.

Jacek



More information about the wine-devel mailing list