Changeset 158 for trunk/dll/select.c


Ignore:
Timestamp:
May 26, 2005, 4:19:05 AM (20 years ago)
Author:
root
Message:

Rework for ULONGLONG

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/select.c

    r123 r158  
    55
    66  Copyright (c) 1993-98 M. Kimes
    7   Copyright (c) 2004 Steven H.Levine
    8 
    9   Revisions     01 Aug 04 SHL - Rework lstrip/rstrip usage
     7  Copyright (c) 2004, 2005 Steven H. Levine
     8
     9  01 Aug 04 SHL Rework lstrip/rstrip usage
     10  25 May 05 SHL Rework for ULONGLONG
    1011
    1112***********************************************************************/
     
    1314#define INCL_DOS
    1415#define INCL_WIN
    15 
     16#define INCL_LONGLONG
    1617#include <os2.h>
     18
    1719#include <stdio.h>
    1820#include <stdlib.h>
    1921#include <string.h>
    2022#include <share.h>
     23
    2124#include "fm3dll.h"
    2225#include "fm3str.h"
     
    445448
    446449
    447 VOID RemoveAll (HWND hwndCnr,ULONG *totalbytes,ULONG *totalfiles) {
     450VOID RemoveAll (HWND hwndCnr,ULONGLONG *pullTotalBytes,ULONG *pulTotalFiles) {
    448451
    449452  PCNRITEM pci;
     
    460463  }
    461464  while(pci && (INT)pci != -1) {
    462     if(!(pci->rc.flRecordAttr & CRA_FILTERED)) {
     465    if (!(pci->rc.flRecordAttr & CRA_FILTERED))
     466    {
    463467      didone = TRUE;
    464       if(totalfiles)
    465         *totalfiles--;
    466       if(totalbytes)
    467         *totalbytes -= (pci->cbFile + pci->easize);
     468      if (pulTotalFiles)
     469        *pulTotalFiles--;
     470      if (pullTotalBytes)
     471        *pullTotalBytes -= (pci->cbFile + pci->easize);
    468472      WinSendMsg(hwndCnr,CM_SETRECORDEMPHASIS,MPFROMP(pci),
    469473                 MPFROM2SHORT(0,CRA_SELECTED));
Note: See TracChangeset for help on using the changeset viewer.