From 0e46dfe56e91c7b8cb8e5cc9be2fbc300e9efec5 Mon Sep 17 00:00:00 2001 From: Chris Hanson Date: Sat, 20 May 1995 03:19:09 +0000 Subject: [PATCH] Follow standard practice and call WinCancelShutdown for all of the non-PM threads in the program. --- v7/src/microcode/os2top.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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 -- 2.25.1