Changeset 930 for trunk/dll/misc.c


Ignore:
Timestamp:
Jan 19, 2008, 2:54:06 PM (18 years ago)
Author:
John Small
Message:

Some code "cleanup" for ticket 150.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/misc.c

    r923 r930  
    3737  22 Nov 07 GKY Use CopyPresParams to fix presparam inconsistencies in menus
    3838  12 Jan 08 SHL Document SetConditionalCascade
     39  xx Jan 08 JBS Ticket 150: fix/improve save and restore of dir cnr state at FM/2 close/reopen
    3940
    4041***********************************************************************/
     
    4445#include <ctype.h>
    4546#include <share.h>
    46 #include <malloc.h>                     // _heapmin
     47#include <malloc.h>                  // _heapmin
    4748
    4849#define INCL_DOS
     
    5354#include "fm3dlg.h"
    5455#include "fm3str.h"
    55 #include "pathutil.h"                   // BldQuotedFileName
    56 #include "errutil.h"                    // Dos_Error...
    57 #include "strutil.h"                    // GetPString
     56#include "pathutil.h"              // BldQuotedFileName
     57#include "errutil.h"                // Dos_Error...
     58#include "strutil.h"                // GetPString
    5859#include "fm3dll.h"
    5960
     
    6364
    6465#ifndef BEGIN_LIBPATH
    65 #define BEGIN_LIBPATH            1
     66#define BEGIN_LIBPATH       1
    6667#endif
    6768
    6869#ifndef END_LIBPATH
    69 #define END_LIBPATH              2
     70#define END_LIBPATH           2
    7071#endif
    7172
     
    803804            if (strcmp(szData, testname)) {
    804805              if (stricmp(szData, testname) && IsFile(testname) != -1) {
    805                 DosBeep(50, 100);       /* exists; disallow */
     806                DosBeep(50, 100);       /* exists; disallow */
    806807                return (MRESULT) FALSE;
    807808              }
     
    13431344      PrfQueryProfileData(fmprof, appname, s, (PVOID) bool, &size);
    13441345      if (dcd->SubjectDisplayWidth < 50)
    1345         dcd->SubjectDisplayWidth = 0;
     1346        dcd->SubjectDisplayWidth = 0;
    13461347      else if (dcd->SubjectDisplayWidth > 1000)
    1347         dcd->SubjectDisplayWidth = 1000;
     1348        dcd->SubjectDisplayWidth = 1000;
    13481349    }
    13491350  }
     
    13581359      PrfQueryProfileData(fmprof, appname, s, (PVOID) bool, &size);
    13591360      if (SubjectDisplayWidth < 50)
    1360         SubjectDisplayWidth = 0;
     1361        SubjectDisplayWidth = 0;
    13611362      else if (SubjectDisplayWidth > 1000)
    1362         SubjectDisplayWidth = 1000;
     1363        SubjectDisplayWidth = 1000;
    13631364    }
    13641365  }
     
    14531454                                       MPFROMLONG(CMA_FIRST),
    14541455                                       MPFROMSHORT(attrib));
    1455     if ((!pmi || (INT) pmi == -1) && attrib == CRA_SELECTED)    /* punt */
     1456    if ((!pmi || (INT) pmi == -1) && attrib == CRA_SELECTED)    /* punt */
    14561457      attrib = CRA_CURSORED;
    14571458    else
     
    14791480        if (WinPeekMsg((HAB) 0, &qmsg, (HWND) 0, 0, 0, PM_NOREMOVE))
    14801481          break;                        // Queue has message(s)
    1481       }                         // for
     1482      }                  // for
    14821483    }
    14831484  }
Note: See TracChangeset for help on using the changeset viewer.