Changeset 439 for trunk/dll/autoview.c
- Timestamp:
- Aug 24, 2006, 6:45:27 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/dll/autoview.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
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 }
Note:
See TracChangeset
for help on using the changeset viewer.
