Changeset 817 for trunk/dll/newview.c


Ignore:
Timestamp:
Aug 28, 2007, 12:11:57 AM (18 years ago)
Author:
Gregg Young
Message:

Even better fix for fastviewer failure including removal of duplicate error message for zero byte file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/newview.c

    r816 r817  
    10921092      ad = WinQueryWindowPtr(hwnd, QWL_USER);
    10931093      if (ad) {
    1094         if (ad->text)
     1094        if (ad->text && ad->textsize && !ad->hex)
    10951095          DosSleep(32);   // 26 Aug 07 GKY Fixes failure to load text file in some cases
    10961096        ad->relining = TRUE;
     
    25662566      WinEnableWindow(WinWindowFromID(WinQueryWindow(hwnd, QW_PARENT),
    25672567                                      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      {
    25742576        if (mp1 && (ULONG) mp1 < ad->numlines + 1) {
    25752577
Note: See TracChangeset for help on using the changeset viewer.