瀏覽代碼

answer the WBMsg on process exit, when run from Workbench

git-svn-id: trunk@23265 -
Károly Balogh 12 年之前
父節點
當前提交
3137c6ac4a
共有 1 個文件被更改,包括 6 次插入0 次删除
  1. 6 0
      rtl/amiga/system.pp

+ 6 - 0
rtl/amiga/system.pp

@@ -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;