Changeset 452 for trunk/dll/error.c
- Timestamp:
- Aug 24, 2006, 7:02:16 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/error.c
r383 r452 19 19 22 Jul 06 SHL Optimize calling sequences 20 20 26 Jul 06 SHL Add ..._Error2 21 16 Aug 06 SHL Tweak message formatting 21 22 22 23 ***********************************************************************/ … … 40 41 static APIRET showMsg(ULONG mb_type, HWND hwnd, PCSZ pszTitle, PCSZ pszMsg); 41 42 42 //== Win_Error: report Win...() error ===43 //== Win_Error: report Win...() error using passed message string === 43 44 44 45 VOID Win_Error(HWND hwndErr, HWND hwndOwner, PCSZ pszFileName, ULONG ulLineNo, PCSZ pszFmt,...) … … 64 65 65 66 if (strchr(szMsg, ' ') == NULL) 66 strcat(szMsg, " failed "); // Assume simple function name67 strcat(szMsg, " failed."); // Assume simple function name 67 68 68 69 // Append file name and line number … … 75 76 if (!pErrInfoBlk) { 76 77 psz = szMsg + strlen(szMsg); 77 strcpy(psz, " WinGetError failed ");78 strcpy(psz, " WinGetError failed."); 78 79 } 79 80 else { … … 103 104 } // Win_Error 104 105 106 //== Win_Error2: report Win...() error using passed message id === 107 105 108 VOID Win_Error2(HWND hwndErr, HWND hwndOwner, PCSZ pszFileName, ULONG ulLineNo, UINT idMsg) 106 109 { … … 109 112 } // Win_Error2 110 113 111 //== Dos_Error: report Dos...() error ===114 //== Dos_Error: report Dos...() error using passed message string === 112 115 113 116 INT Dos_Error(ULONG mb_type, ULONG ulRC, HWND hwndOwner, PCSZ pszFileName, … … 132 135 133 136 if (strchr(szMsg, ' ') == NULL) 134 strcat(szMsg, " failed "); // Assume simple function name137 strcat(szMsg, " failed."); // Assume simple function name 135 138 136 139 DosErrClass(ulRC, &Class, &action, &Locus); … … 185 188 } // Dos_Error 186 189 187 //== Dos_Error2: report Dos...() error ===190 //== Dos_Error2: report Dos...() error using passed message id === 188 191 189 192 INT Dos_Error2(ULONG mb_type, ULONG ulRC, HWND hwndOwner, PCSZ pszFileName, … … 194 197 } // Dos_Error2 195 198 196 //== Runtime_Error: report runtime library error ===199 //== Runtime_Error: report runtime library error using passed message string === 197 200 198 201 VOID Runtime_Error(PCSZ pszSrcFile, UINT uSrcLineNo, PCSZ pszFmt,...) … … 208 211 209 212 if (strchr(szMsg, ' ') == NULL) 210 strcat(szMsg, " failed "); // Assume simple function name213 strcat(szMsg, " failed."); // Assume simple function name 211 214 212 215 sprintf(szMsg + strlen(szMsg), … … 220 223 } // Runtime_Error 221 224 225 //== Runtime_Error2: report runtime library error using passed message id === 226 222 227 VOID Runtime_Error2(PCSZ pszSrcFile, UINT uSrcLineNo, UINT idMsg) 223 228 { … … 228 233 // fixme to be rename to Misc_Error 229 234 230 //=== saymsg: report misc error ===235 //=== saymsg: report misc error using passed message === 231 236 232 237 APIRET saymsg(ULONG mb_type, HWND hwnd, PCSZ pszTitle, PCSZ pszFmt,...) … … 239 244 va_end(va); 240 245 241 return showMsg(mb_type, 242 hwnd, 243 pszTitle, 244 szMsg); 246 return showMsg(mb_type,hwnd,pszTitle,szMsg); 247 245 248 } // saymsg 246 249 247 //=== showMsg: report misc error===250 //=== showMsg: display error popup === 248 251 249 252 static APIRET showMsg(ULONG mb_type, HWND hwnd, PCSZ pszTitle, PCSZ pszMsg)
Note:
See TracChangeset
for help on using the changeset viewer.