diff --git a/dlls/msvcrt/file.c b/dlls/msvcrt/file.c index c07ae306b90..59b7eb87202 100644 --- a/dlls/msvcrt/file.c +++ b/dlls/msvcrt/file.c @@ -1771,7 +1771,7 @@ int CDECL MSVCRT__sopen_s( int *fd, const char *path, int oflags, int shflags, i sa.nLength = sizeof( SECURITY_ATTRIBUTES ); sa.lpSecurityDescriptor = NULL; - sa.bInheritHandle = (oflags & MSVCRT__O_NOINHERIT) ? FALSE : TRUE; + sa.bInheritHandle = !(oflags & MSVCRT__O_NOINHERIT); hand = CreateFileA(path, access, sharing, &sa, creation, attrib, 0); if (hand == INVALID_HANDLE_VALUE) { @@ -1885,7 +1885,7 @@ int CDECL MSVCRT__wsopen_s( int *fd, const MSVCRT_wchar_t* path, int oflags, int sa.nLength = sizeof( SECURITY_ATTRIBUTES ); sa.lpSecurityDescriptor = NULL; - sa.bInheritHandle = (oflags & MSVCRT__O_NOINHERIT) ? FALSE : TRUE; + sa.bInheritHandle = !(oflags & MSVCRT__O_NOINHERIT); hand = CreateFileW(path, access, sharing, &sa, creation, attrib, 0); diff --git a/dlls/msvcrt/wcs.c b/dlls/msvcrt/wcs.c index d9fb0a5ff08..32ee76bab34 100644 --- a/dlls/msvcrt/wcs.c +++ b/dlls/msvcrt/wcs.c @@ -50,7 +50,7 @@ int CDECL MSVCRT__get_printf_count_output( void ) int CDECL MSVCRT__set_printf_count_output( int enable ) { BOOL old = n_format_enabled; - n_format_enabled = (enable ? TRUE : FALSE); + n_format_enabled = enable != 0; return old ? 1 : 0; }