Changeset 439
- Timestamp:
- Aug 24, 2006, 6:45:27 AM (19 years ago)
- Location:
- trunk/dll
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/dll/autoview.c ¶
r377 r439 15 15 29 May 06 SHL Sync with archiver.bb2 mods 16 16 22 Jul 06 SHL Check more run time errors 17 15 Aug 06 SHL Use Runtime_Error more 17 18 18 19 ***********************************************************************/ … … 216 217 } 217 218 219 static PSZ pszBufOvfMsg = "Buffer overflow"; 218 220 219 221 ULONG CreateHexDump (CHAR *pchInBuf,ULONG cbInBuf, … … 232 234 while (ibIn < cbInBuf) { 233 235 if (pchOut - pchOutBuf + cbOutLine >= cbOutBuf) { 234 saymsg(MB_ENTER,HWND_DESKTOP,DEBUG_STRING,"hex buf ovf");236 Runtime_Error(pszSrcFile, __LINE__, pszBufOvfMsg); 235 237 break; 236 238 } … … 403 405 *dest = 0; 404 406 if (dest - obuff >= obufflen) 405 saymsg(MB_ENTER,HWND_DESKTOP,DEBUG_STRING,"obuff ovf");407 Runtime_Error(pszSrcFile, __LINE__, pszBufOvfMsg); 406 408 } 407 409 if(*obuff) … … 503 505 } // while 504 506 if (p - buff >= bufflen) 505 saymsg(MB_ENTER,HWND_DESKTOP,DEBUG_STRING,"buff ovf");507 Runtime_Error(pszSrcFile, __LINE__, pszBufOvfMsg); 506 508 if(*buff) 507 509 WinSetWindowText(hwndAutoview,buff); … … 586 588 } // while 587 589 if (p - buff >= 65536) { 588 saymsg(MB_ENTER,HWND_DESKTOP,DEBUG_STRING,"eabuff ovf");590 Runtime_Error(pszSrcFile, __LINE__, pszBufOvfMsg); 589 591 buff[65535] = 0; // Try to stay alive 590 592 break; … … 687 689 if (_beginthread(MakeAutoWin,NULL,65536,(PVOID)hwnd) == -1) { 688 690 Runtime_Error(pszSrcFile, __LINE__, GetPString(IDS_COULDNTSTARTTHREADTEXT)); 689 PostMsg(hwnd, 690 UM_CLOSE, 691 MPVOID, 692 MPVOID); 691 PostMsg(hwnd,UM_CLOSE,MPVOID,MPVOID); 693 692 } 694 693 } -
TabularUnified trunk/dll/avl.c ¶
r418 r439 23 23 14 Jul 06 SHL Use Runtime_Error 24 24 29 Jul 06 SHL Use xfgets, xfgets_bstripcr 25 15 Aug 06 SHL Use Runtime_Error more 25 26 26 27 ***********************************************************************/ … … 728 729 //=== SBoxDlgProc() Select archiver to use or edit, supports list reorder too === 729 730 731 static PSZ pszCantFindMsg = "Can't find item %d"; 732 730 733 MRESULT EXPENTRY SBoxDlgProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2) 731 734 { … … 882 885 if (!pat) { 883 886 if (arcsighead) 884 saymsg(0,NULLHANDLE,"*Debug*","Can not find self at %d at %s::%u", sSelect, pszSrcFile, __LINE__);887 Runtime_Error(pszSrcFile, __LINE__, pszCantFindMsg, sSelect); 885 888 else 886 889 arcsighead = ad.info; … … 921 924 ; // Find self 922 925 923 if (!pat) { 924 saymsg(0,NULLHANDLE,"*Debug*","Can not find self at %d at %s::%u",sSelect, pszSrcFile, __LINE__); 925 } 926 if (!pat) 927 Runtime_Error(pszSrcFile, __LINE__, pszCantFindMsg, sSelect); 926 928 else { 927 929 // Delete current … … 962 964 for (i = 0, pat = arcsighead; pat && i < sSelect; pat = pat->next, i++) 963 965 ; // Find self 964 if (!pat || !pat->prev) { 965 saymsg(0,NULLHANDLE,"*Debug*","Can not find self at %d at %s::%u",sSelect, pszSrcFile, __LINE__); 966 } 966 if (!pat || !pat->prev) 967 Runtime_Error(pszSrcFile, __LINE__, pszCantFindMsg, sSelect); 967 968 else { 968 969 ARC_TYPE *patGDad; … … 1009 1010 for (i = 0, pat = arcsighead; pat && i < sSelect; pat = pat->next, i++) 1010 1011 ; // Find self 1011 if (!pat || !pat->next) { 1012 saymsg(0,NULLHANDLE,"*Debug*","Can not find self at %d/%d at %s::%u",sSelect, sItemCount, pszSrcFile, __LINE__); 1013 } 1012 if (!pat || !pat->next) 1013 Runtime_Error(pszSrcFile, __LINE__, "Can't find item %d of %d", sSelect, sItemCount); 1014 1014 else { 1015 1015 ARC_TYPE *patDad;
Note:
See TracChangeset
for help on using the changeset viewer.