- Timestamp:
- Apr 19, 2007, 4:24:12 AM (19 years ago)
- File:
- 
      - 1 edited
 
 - 
          
  trunk/dll/error.c (modified) (3 diffs)
 
Legend:
- Unmodified
- Added
- Removed
- 
      trunk/dll/error.cr613 r614 78 78 // Append file name and line number 79 79 sprintf(szMsg + strlen(szMsg), 80 GetPString(IDS_GENERR1TEXT), pszFileName, ulLineNo, " 80 GetPString(IDS_GENERR1TEXT), pszFileName, ulLineNo, " "); 81 81 82 82 // Get last PM error for the current thread … … 97 97 */ 98 98 psz = szMsg + strlen(szMsg); 99 sprintf(psz, "#0x%04x 99 sprintf(psz, "#0x%04x \"", ERRORIDERROR(pErrInfoBlk->idError)); 100 100 psz += strlen(psz); 101 101 strcpy(psz, ((PSZ) pErrInfoBlk) + *(PSHORT) pszOffset); 102 102 psz += strlen(psz); 103 // Chop trailing mush 104 psz--; 105 while (*psz == '\r' || *psz == '\n' || *psz == ' ') 106 *psz-- = 0; 107 if (*psz) 108 psz++; 103 109 strcpy(psz, "\""); 104 110 WinFreeErrorInfo(pErrInfoBlk); // Free resource segment … … 273 279 fputs(pszMsg, stderr); 274 280 fputc('\n', stderr); 281 fputc('\n', stderr); 275 282 fflush(stderr); 276 283 } 
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  
