Skip to content

Commit

Permalink
Fix casting to Boolean in driveValid()
Browse files Browse the repository at this point in the history
  • Loading branch information
magiblot committed Oct 23, 2024
1 parent 596fd41 commit a99d342
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/tvision/tdircoll.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#include <dos.h>
#endif // __DOS_H

#if defined( _WIN32 ) && defined( __FLAT__ )
#if defined( __FLAT__ )
#include <tvision/compat/windows/windows.h>
#endif

Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit a99d342

Please sign in to comment.