diff --git a/source/tvision/tdircoll.cpp b/source/tvision/tdircoll.cpp index 40332cc7..9f5456cb 100644 --- a/source/tvision/tdircoll.cpp +++ b/source/tvision/tdircoll.cpp @@ -34,7 +34,7 @@ #include #endif // __DOS_H -#if defined( _WIN32 ) && defined( __FLAT__ ) +#if defined( __FLAT__ ) #include #endif @@ -66,7 +66,7 @@ I XCHG AX, CX // Put the return value into AX #else drive = toupper((uchar) drive); DWORD mask = 0x01 << (drive - 'A'); - return (Boolean) (GetLogicalDrives() & mask); + return Boolean( (GetLogicalDrives() & mask) != 0 ); #endif #else // Unless otherwise necessary, we will emulate there's only one disk: