Changeset 528 for trunk/dll/undel.c
- Timestamp:
- Nov 4, 2006, 9:59:06 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/dll/undel.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/undel.c
r406 r528 11 11 17 Jul 06 SHL Use Runtime_Error 12 12 29 Jul 06 SHL Use xfgets_bstripcr 13 03 Nov 06 SHL Count thread usage 13 14 14 15 ***********************************************************************/ … … 33 34 static PSZ pszSrcFile = __FILE__; 34 35 35 #pragma alloc_text(UNDELETE,FillUndelList ,UndeleteDlgProc)36 #pragma alloc_text(UNDELETE,FillUndelListThread,UndeleteDlgProc) 36 37 37 38 struct tempstruct { … … 42 43 43 44 44 VOID FillUndelList(VOID *arg)45 static VOID FillUndelListThread (VOID *arg) 45 46 { 46 47 HWND hwnd; … … 62 63 thab = WinInitialize(0); 63 64 thmq = WinCreateMsgQueue(thab,0); 64 WinCancelShutdown(thmq,TRUE); 65 if(thab && thmq) { 65 if (thab && thmq) { 66 WinCancelShutdown(thmq,TRUE); 67 IncrThreadUsage(); 66 68 WinSendDlgItemMsg(hwnd,UNDEL_LISTBOX,LM_DELETEALL,MPVOID,MPVOID); 67 69 unlinkf("%s","$UDELETE.#$#"); … … 149 151 } 150 152 Abort: 153 ; 154 } 155 DosForceDelete("$UDELETE.#$#"); 156 if (undelinfo) 157 free(undelinfo); 158 if (thmq) { 159 PostMsg(hwnd,UM_CONTAINER_FILLED,MPVOID,MPVOID); 160 if (killme) 161 PostMsg(hwnd,WM_CLOSE,MPVOID,MPVOID); 151 162 WinDestroyMsgQueue(thmq); 163 } 164 if (thab) { 165 DecrThreadUsage(); 152 166 WinTerminate(thab); 153 167 } 154 DosForceDelete("$UDELETE.#$#");155 PostMsg(hwnd,156 UM_CONTAINER_FILLED,157 MPVOID,158 MPVOID);159 if(killme)160 PostMsg(hwnd,161 WM_CLOSE,162 MPVOID,163 MPVOID);164 if(undelinfo)165 free(undelinfo);166 168 } 167 169 … … 226 228 toupper(*undelinfo->path)); 227 229 WinSetWindowText(hwnd,s); 228 if (_beginthread(FillUndelList ,NULL,65536,(PVOID)undelinfo) == -1)230 if (_beginthread(FillUndelListThread,NULL,65536,(PVOID)undelinfo) == -1) 229 231 { 230 232 Runtime_Error(pszSrcFile, __LINE__,GetPString(IDS_COULDNTSTARTTHREADTEXT));
Note:
See TracChangeset
for help on using the changeset viewer.
