Changeset 817 for trunk/dll/newview.c
- Timestamp:
- Aug 28, 2007, 12:11:57 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/dll/newview.c
r816 r817 1092 1092 ad = WinQueryWindowPtr(hwnd, QWL_USER); 1093 1093 if (ad) { 1094 if (ad->text )1094 if (ad->text && ad->textsize && !ad->hex) 1095 1095 DosSleep(32); // 26 Aug 07 GKY Fixes failure to load text file in some cases 1096 1096 ad->relining = TRUE; … … 2566 2566 WinEnableWindow(WinWindowFromID(WinQueryWindow(hwnd, QW_PARENT), 2567 2567 IDM_PREVBLANKLINE), !ad->hex); 2568 if (!ad->numlines) { 2569 if (!ad->text) 2570 Runtime_Error(pszSrcFile, __LINE__, "no data"); 2571 PostMsg(hwnd, WM_CLOSE, MPVOID, MPVOID); 2572 } 2573 else { 2568 if (ad->numlines) 2569 //{ // 27 Aug 07 GKY This creates a duplicate error for a zero byte file 2570 // if (!ad->text) 2571 // Runtime_Error(pszSrcFile, __LINE__, "no data"); 2572 // PostMsg(hwnd, WM_CLOSE, MPVOID, MPVOID); 2573 // } 2574 // else 2575 { 2574 2576 if (mp1 && (ULONG) mp1 < ad->numlines + 1) { 2575 2577
Note:
See TracChangeset
for help on using the changeset viewer.