From: Chris Hanson <org/chris-hanson/cph>
Date: Sat, 20 May 1995 03:19:09 +0000 (+0000)
Subject: Follow standard practice and call WinCancelShutdown for all of the
X-Git-Tag: 20090517-FFI~6290
X-Git-Url: https://birchwood-abbey.net/git?a=commitdiff_plain;h=0e46dfe56e91c7b8cb8e5cc9be2fbc300e9efec5;p=mit-scheme.git

Follow standard practice and call WinCancelShutdown for all of the
non-PM threads in the program.
---

diff --git a/v7/src/microcode/os2top.c b/v7/src/microcode/os2top.c
index 5bc636095..6cbb3e3d8 100644
--- a/v7/src/microcode/os2top.c
+++ b/v7/src/microcode/os2top.c
@@ -1,6 +1,6 @@
 /* -*-C-*-
 
-$Id: os2top.c,v 1.13 1995/04/28 07:05:06 cph Exp $
+$Id: os2top.c,v 1.14 1995/05/20 03:19:09 cph Exp $
 
 Copyright (c) 1994-95 Massachusetts Institute of Technology
 
@@ -333,10 +333,15 @@ OS2_create_msg_queue (void)
   /* Create a PM message queue.  This allows us to use message boxes
      to report fatal errors.  */
   HAB hab = (WinInitialize (0));
+  HMQ hmq;
   if (hab == NULLHANDLE)
     OS2_logic_error ("Unable to initialize anchor block.");
-  if ((WinCreateMsgQueue (hab, 0)) == NULLHANDLE)
+  hmq = (WinCreateMsgQueue (hab, 0));
+  if (hmq == NULLHANDLE)
     OS2_logic_error ("Unable to create PM message queue.");
+  /* This tells the system that this message queue should not receive
+     WM_QUIT messages.  */
+  WinCancelShutdown (hmq, TRUE);
 }
 
 void