Tcl Source Code

Attachment Details
Login
Overview

Artifact ID: e5af1b453ae360f0d400661032c7b097cb97071d
Ticket: 217982ffffffffffffffffffffffffffffffffff
Date: 2001-05-10 10:02:07
User: davygrvy
Artifact Attached: 126df55ec9f9c0c04b8d841ecd83f95573a313a7
Filename:patch.txt
Description:diff of fix
Content:
     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    13
    14
    15
    16
    17
    18
*** win/tclWinNotify.c 1999/07/02 22:08:28 1.5 
--- win/tclWinNotify.c 2000/06/05 00:50:37 
*************** 
*** 150,155 **** 
--- 150,163 ---- 
{ 
ThreadSpecificData *tsdPtr = (ThreadSpecificData *) clientData; 

+ /* 
+ * Should the operating system call DllMain() with 
+ * DLL_PROCESS_DETACH from any alternate thread path, such 
+ * as Task Manager terminating the process, tsdPtr will 
+ * be NULL and invalid. 
+ */ 
+ if (tsdPtr == NULL) return; 
+ 
DeleteCriticalSection(&tsdPtr->crit); 
CloseHandle(tsdPtr->event);