Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

Changeset 3643

Show
Ignore:
Timestamp:
06/19/08 16:50:17 (3 months ago)
Author:
kris
Message:

now using InvalidFileHandle? to represent a null handle (for Win32)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/tango/io/DeviceConduit.d

    r3642 r3643  
    109109                override void detach () 
    110110                { 
    111                         if (handle
     111                        if (handle != INVALID_HANDLE_VALUE
    112112                            CloseHandle (handle); 
    113                         handle = cast(HANDLE) null
     113                        handle = INVALID_HANDLE_VALUE
    114114                } 
    115115 
     
    201201                { 
    202202                        if (handle >= 0) 
    203                             if (posix.close (handle) is -1) 
    204                                 error; 
     203                            posix.close (handle); 
    205204                        handle = -1; 
    206205                }