Module: wine Branch: master Commit: 426099a4a3c637794c883c053bcd9185095e424b URL: https://source.winehq.org/git/wine.git/?a=commit;h=426099a4a3c637794c883c053...
Author: Michael Stefaniuc mstefani@winehq.org Date: Mon Feb 4 23:16:41 2019 +0100
kernelbase: Avoid TRUE : FALSE conditional expressions.
Signed-off-by: Michael Stefaniuc mstefani@winehq.org Signed-off-by: Alexandre Julliard julliard@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 bcd129c..dfcc825 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; }