Changeset 1498 for trunk/dll/dirsize.c


Ignore:
Timestamp:
Jan 18, 2010, 1:57:01 AM (16 years ago)
Author:
Gregg Young
Message:

Changes to get FM2 to compile with the latest watcom 1.9 beta (mostly type casts of CHAR CONSTANT * to CHAR *). Changes to get the environment settings working everywhere again (broken by the change that moved commands to the INI); Added an environment size variable (set to 2048 which was the largest I found hard coded). Still need to find everywhere the environment size is set and use this variable.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/dirsize.c

    r1482 r1498  
    77
    88  Copyright (c) 1993-98 M. Kimes
    9   Copyright (c) 2001, 2009 Steven H. Levine
     9  Copyright (c) 2001, 2010 Steven H. Levine
    1010
    1111  16 Oct 02 SHL Handle large partitions
     
    5151                aren't user settable; realappname should be used for setting applicable to
    5252                one or more miniapp but not to FM/2
     53  17 JAN 10 GKY Changes to get working with Watcom 1.9 Beta (1/16/10). Mostly cast CHAR CONSTANT * as CHAR *.
    5354
    5455***********************************************************************/
     
    528529      ULONG size = sizeof(SWP);
    529530
    530       PrfQueryProfileData(fmprof, FM3Str, "DirSizes.Position", (PVOID) &swp, &size);
     531      PrfQueryProfileData(fmprof, (CHAR *) FM3Str, "DirSizes.Position", (PVOID) &swp, &size);
    531532      swp.fl &= ~SWP_SIZE;              // 04 Feb 09 SHL ignore saved size
    532533      WinSetWindowPos(hwnd,
     
    606607        }
    607608        else
    608           WinSetDlgItemText(hwnd,
    609                             DSZ_FREESPACE, GetPString(IDS_FREESPACEUTEXT));
     609          WinSetDlgItemText(hwnd, DSZ_FREESPACE, (CHAR *) GetPString(IDS_FREESPACEUTEXT));
    610610      }
    611611    }
     
    10191019
    10201020        WinQueryWindowPos(hwnd, &swp);
    1021         PrfWriteProfileData(fmprof, FM3Str, "DirSizes.Position", (PVOID) &swp,
    1022                             size);
     1021        PrfWriteProfileData(fmprof, (CHAR *) FM3Str, "DirSizes.Position", (PVOID) &swp, size);
    10231022      }
    10241023      pState = INSTDATA(hwnd);
Note: See TracChangeset for help on using the changeset viewer.