Changeset 907 for trunk/dirsize.c


Ignore:
Timestamp:
Jan 6, 2008, 8:26:17 AM (18 years ago)
Author:
Steven Levine
Message:

Avoid out of memory traps in Compare Directories
Rework Compare Directories progress display for 2 second update rate
Start refactoring to reduce dependence on fm3dll.h
Add timer services (IsITimerExpired etc.)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dirsize.c

    r552 r907  
    99  Copyright (c) 2004 Steven H.Levine
    1010
    11   Revisions     11 Jun 02 SHL - Baseline
    12                 06 Jan 04 SHL - Total drives >4GB better
     11  11 Jun 02 SHL Baseline
     12  06 Jan 04 SHL Total drives >4GB better
    1313
    1414***********************************************************************/
     15
     16#include <string.h>
     17#include <ctype.h>
    1518
    1619#define INCL_DOS
    1720#define INCL_WIN
    1821
    19 #include <os2.h>
    20 #include <stdarg.h>
    21 #include <stdio.h>
    22 #include <stdlib.h>
    23 #include <string.h>
    24 #include <ctype.h>
    25 
    26 #include "dll\fm3dll.h"
    2722#include "dll\fm3dlg.h"
    2823#include "dirsize.h"
     24#include "dll\fm3dll.h"
    2925
    3026MRESULT EXPENTRY DirMainProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2)
     
    10197        else if (type & DRIVE_REMOTE)
    10298          WinSetDlgItemText(hwnd, DIRSIZE_LOCAL, "Remote drive");
    103         else if (type & DRIVE_VIRTUAL)
    104             WinSetDlgItemText(hwnd, DIRSIZE_LOCAL, "Virtual drive");
    105         else if (type & DRIVE_RAMDISK)
     99        else if (type & DRIVE_VIRTUAL)
     100            WinSetDlgItemText(hwnd, DIRSIZE_LOCAL, "Virtual drive");
     101        else if (type & DRIVE_RAMDISK)
    106102          WinSetDlgItemText(hwnd, DIRSIZE_LOCAL, "Ramdisk");
    107103        else {
     
    205201}
    206202
    207 #ifdef NEVER
     203#ifdef NEVER                            // 05 Jan 08 SHL fixme to be gone?
    208204
    209205VOID APIENTRY deinit(ULONG why)
Note: See TracChangeset for help on using the changeset viewer.