[PATCH] kernelbase: Avoid TRUE : FALSE conditional expressions

Michael Stefaniuc mstefani at winehq.org
Mon Feb 4 16:16:41 CST 2019


Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
---
 dlls/kernelbase/path.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/kernelbase/path.c b/dlls/kernelbase/path.c
index bcd129cce9..dfcc825838 100644
--- a/dlls/kernelbase/path.c
+++ b/dlls/kernelbase/path.c
@@ -421,7 +421,7 @@ HRESULT WINAPI PathCchAddExtension(WCHAR *path, SIZE_T size, const WCHAR *extens
         next++;
     }
 
-    has_dot = extension[0] == '.' ? TRUE : FALSE;
+    has_dot = extension[0] == '.';
 
     hr = PathCchFindExtension(path, size, &existing_extension);
     if (FAILED(hr)) return hr;
@@ -863,5 +863,5 @@ BOOL WINAPI PathIsUNCEx(const WCHAR *path, const WCHAR **server)
         result = path + 2;
 
     if (server) *server = result;
-    return result ? TRUE : FALSE;
+    return !!result;
 }
-- 
2.20.1




More information about the wine-devel mailing list