answer the WBMsg on process exit, when run from Workbench

git-svn-id: trunk@23265 -
This commit is contained in:
Károly Balogh 2013-01-01 01:47:30 +00:00
parent 288820715d
commit 3137c6ac4a

View File

@ -147,6 +147,12 @@ begin
if AOS_DOSBase<>nil then CloseLibrary(AOS_DOSBase);
if AOS_heapPool<>nil then DeletePool(AOS_heapPool);
{ If in Workbench mode, replying WBMsg }
if AOS_wbMsg<>nil then begin
Forbid;
ReplyMsg(AOS_wbMsg);
end;
haltproc(ExitCode);
end;