Changeset 1062 for trunk/dll/objwin.c
- Timestamp:
- Jul 8, 2008, 10:57:26 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/objwin.c
r1038 r1062 7 7 8 8 Copyright (c) 1993-98 M. Kimes 9 Copyright (c) 2006 Steven H.Levine9 Copyright (c) 2006, 2008 Steven H.Levine 10 10 11 11 26 Jul 06 SHL Check more run time errors … … 13 13 30 Mar 07 GKY Remove GetPString for window class names 14 14 20 Aug 07 GKY Move #pragma alloc_text to end for OpenWatcom compat 15 08 Jul 08 SHL Correct Fortify_LeaveScope usage and avoid spurious reports 15 16 16 17 ***********************************************************************/ … … 76 77 IDS_WINCREATEWINDOW); 77 78 else { 78 # 79 80 # 79 #ifdef FORTIFY 80 Fortify_EnterScope(); 81 #endif 81 82 WinSetWindowPtr(ObjectHwnd, QWL_USER, args); 82 83 /* initially populate container */ … … 87 88 WinDispatchMsg(hab2, &qmsg2); 88 89 WinDestroyWindow(ObjectHwnd); 90 #ifdef FORTIFY 91 { 92 HWND hwndCnr = ((DIRCNRDATA *)args)->hwndCnr; 93 USHORT i; 94 // Allow container to close and free data 95 for (i = 0; WinIsWindow(hab2, hwndCnr) && i < 10; i++) { 96 DosSleep(50); 97 } 98 Fortify_LeaveScope(); 99 } 100 #endif 89 101 } 90 102 WinDestroyMsgQueue(hmq2); 91 103 } 92 # ifdef FORTIFY93 Fortify_LeaveScope();94 # endif95 104 WinTerminate(hab2); 96 105 }
Note:
See TracChangeset
for help on using the changeset viewer.