Michael Stefaniuc : msi/tests: Avoid a TRUE:FALSE conditional expression.

Alexandre Julliard julliard at winehq.org
Wed Aug 15 14:08:31 CDT 2012


Module: wine
Branch: master
Commit: 5974e9d120fc6bf88fdfd7e4832db6d0ac6663d0
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=5974e9d120fc6bf88fdfd7e4832db6d0ac6663d0

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Tue Aug 14 23:10:59 2012 +0200

msi/tests: Avoid a TRUE:FALSE conditional expression.

---

 dlls/msi/tests/package.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/msi/tests/package.c b/dlls/msi/tests/package.c
index 92a0f9a..5d56afe 100644
--- a/dlls/msi/tests/package.c
+++ b/dlls/msi/tests/package.c
@@ -4115,7 +4115,7 @@ static void test_appsearch_reglocator(void)
                          (const BYTE *)path, lstrlenA(path) + 1);
     ok( res == ERROR_SUCCESS, "Expected ERROR_SUCCESS got %d\n", res);
 
-    space = (strchr(CURR_DIR, ' ')) ? TRUE : FALSE;
+    space = strchr(CURR_DIR, ' ') != NULL;
     sprintf(path, "%s\\FileName1 -option", CURR_DIR);
     res = RegSetValueExA(hklm, "value17", 0, REG_SZ,
                          (const BYTE *)path, lstrlenA(path) + 1);




More information about the wine-cvs mailing list