From dfa57c6e97f1cbbd8147ee7986dc39755ef51c0d Mon Sep 17 00:00:00 2001 From: Michael Stefaniuc Date: Mon, 6 Aug 2012 11:26:07 +0200 Subject: [PATCH] krnl386.exe16: Avoid TRUE:FALSE conditional expressions. --- dlls/krnl386.exe16/dosexe.c | 2 +- dlls/krnl386.exe16/int31.c | 2 +- dlls/krnl386.exe16/vga.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/krnl386.exe16/dosexe.c b/dlls/krnl386.exe16/dosexe.c index ff553266828..9797c868b7d 100644 --- a/dlls/krnl386.exe16/dosexe.c +++ b/dlls/krnl386.exe16/dosexe.c @@ -61,7 +61,7 @@ static BOOL DOSVM_isdosexe; */ BOOL DOSVM_IsWin16(void) { - return DOSVM_isdosexe ? FALSE : TRUE; + return !DOSVM_isdosexe; } /********************************************************************** diff --git a/dlls/krnl386.exe16/int31.c b/dlls/krnl386.exe16/int31.c index 982887682bb..ac9ae1f5815 100644 --- a/dlls/krnl386.exe16/int31.c +++ b/dlls/krnl386.exe16/int31.c @@ -93,7 +93,7 @@ typedef struct { */ BOOL DOSVM_IsDos32(void) { - return (dpmi_flag & 1) ? TRUE : FALSE; + return (dpmi_flag & 1) != 0; } diff --git a/dlls/krnl386.exe16/vga.c b/dlls/krnl386.exe16/vga.c index 70b3ef164dd..98edcef51a2 100644 --- a/dlls/krnl386.exe16/vga.c +++ b/dlls/krnl386.exe16/vga.c @@ -716,7 +716,7 @@ static void VGA_InstallTimer(unsigned Rate) static BOOL VGA_IsTimerRunning(void) { - return VGA_timer_thread ? TRUE : FALSE; + return VGA_timer_thread != 0; } static HANDLE VGA_AlphaConsole(void)