Changeset 36 for trunk/dll/info.c


Ignore:
Timestamp:
Oct 17, 2002, 3:53:23 AM (23 years ago)
Author:
root
Message:

Handle large partitions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/info.c

    r2 r36  
     1
     2/***********************************************************************
     3
     4  $Id$
     5
     6  Info window
     7
     8  Copyright (c) 1993-98 M. Kimes
     9  Copyright (c) 2001, 2002 Steven H.Levine
     10
     11  Revisions     16 Oct 02 SHL - Handle large partitions
     12
     13***********************************************************************/
     14
    115#define INCL_DOS
    216#define INCL_WIN
     
    173187                                  s);
    174188                sprintf(s,
    175                         "%lu mb, %lu kb, %lu %s%s",((fsa.cUnit *
    176                         (fsa.cSectorUnit * fsa.cbSector)) / 1024L) / 1024L,
    177                         (fsa.cUnit * (fsa.cSectorUnit * fsa.cbSector)) / 1024L,
     189                        "%lu mb, %lu kb, %lu %s%s",
     190                        (ULONG)(((float)fsa.cUnit *
     191                          (fsa.cSectorUnit * fsa.cbSector)) / (1024L * 1024L)),
     192                        (ULONG)(((float)fsa.cUnit * (fsa.cSectorUnit * fsa.cbSector)) / 1024L),
    178193                        fsa.cUnit,
    179194                        GetPString(IDS_UNITTEXT),
     
    184199                sprintf(s,
    185200                        "%lu mb, %lu kb, %lu %s%s",
    186                         ((fsa.cUnitAvail * (fsa.cSectorUnit * fsa.cbSector)) / 1024L) / 1024L,
    187                         (fsa.cUnitAvail * (fsa.cSectorUnit * fsa.cbSector)) / 1024L,
     201                        (ULONG)(((float)fsa.cUnitAvail *
     202                          (fsa.cSectorUnit * fsa.cbSector)) / (1024L * 1024L)),
     203                        (ULONG)(((float)fsa.cUnitAvail * (fsa.cSectorUnit * fsa.cbSector)) / 1024L),
    188204                        fsa.cUnitAvail,
    189205                        GetPString(IDS_UNITTEXT),
     
    975991  return WinDefDlgProc(hwnd,msg,mp1,mp2);
    976992}
    977  
     993
    978994
    979995MRESULT EXPENTRY SetDrvProc (HWND hwnd,ULONG msg,MPARAM mp1,MPARAM mp2) {
Note: See TracChangeset for help on using the changeset viewer.