Changeset 1840 for trunk/dll/errutil.c
- Timestamp:
- Aug 12, 2015, 7:06:11 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/errutil.c
r1722 r1840 7 7 8 8 Copyright (c) 1993-98 M. Kimes 9 Copyright (c) 2004, 201 4Steven H. Levine9 Copyright (c) 2004, 2015 Steven H. Levine 10 10 11 11 12 Aug 04 SHL Comments … … 42 42 16 Feb 14 GKY Rework readonly check on delete code so it actually works in a logical way 43 43 and so it works with move to trashcan inabled. 44 09 Nov 13 SHL Use GetTidForThread in DbgMsg and tweak for for editors that understand file:line 44 45 45 46 ***********************************************************************/ … … 61 62 #include "notebook.h" // fErrorBeepOff 62 63 #include "init.h" // Data declares 64 #include "misc.h" // GetTidForThread 63 65 #include "wrappers.h" // xmallocz 64 66 #include "fm3dll2.h" … … 81 83 VOID DbgMsg(PCSZ pszSrcFile, UINT uSrcLineNo, PCSZ pszFmt, ...) 82 84 { 83 PIB *ppib;84 TIB *ptib;85 85 ULONG ultid; 86 APIRET apiret;87 86 va_list va; 88 87 … … 106 105 #endif 107 106 108 apiret = DosGetInfoBlocks(&ptib, &ppib); 109 if (apiret) 110 ultid = 0; 111 else 112 ultid = ptib->tib_ptib2->tib2_ultid; 107 ultid = GetTidForThread(); 113 108 114 109 // OK for source file name to be null 115 fprintf(stderr, "%s %u (%lu)", pszSrcFile ? pszSrcFile : "n/a", uSrcLineNo, ultid); 110 // 2015-08-08 SHL Use file:line for editors that support it 111 fprintf(stderr, "%s:%u (%lu)", pszSrcFile ? pszSrcFile : "n/a", uSrcLineNo, ultid); 116 112 // If format null want just file and line 117 113 if (pszFmt) {
Note:
See TracChangeset
for help on using the changeset viewer.