Module: wine Branch: master Commit: f6cd3e874b6d975cf2fdc93edc90bc4ed9f48ced URL: http://source.winehq.org/git/wine.git/?a=commit;h=f6cd3e874b6d975cf2fdc93edc...
Author: Michael Stefaniuc mstefani@redhat.de Date: Tue Aug 14 23:43:24 2012 +0200
winefile: Avoid a TRUE:FALSE conditional expression.
---
programs/winefile/winefile.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/programs/winefile/winefile.c b/programs/winefile/winefile.c index 2537f62..366aa9c 100644 --- a/programs/winefile/winefile.c +++ b/programs/winefile/winefile.c @@ -3675,7 +3675,7 @@ static BOOL is_directory(LPCWSTR target) if (target_attr == INVALID_FILE_ATTRIBUTES) return FALSE;
- return target_attr&FILE_ATTRIBUTE_DIRECTORY? TRUE: FALSE; + return (target_attr & FILE_ATTRIBUTE_DIRECTORY) != 0; }
static BOOL prompt_target(Pane* pane, LPWSTR source, LPWSTR target)