kernel32/tests: The result of a comparison is already a BOOL

Michael Stefaniuc mstefani at redhat.de
Tue Jun 30 02:29:24 CDT 2015


---
 dlls/kernel32/tests/volume.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/kernel32/tests/volume.c b/dlls/kernel32/tests/volume.c
index b41f8ac..44794f1 100644
--- a/dlls/kernel32/tests/volume.c
+++ b/dlls/kernel32/tests/volume.c
@@ -793,9 +793,9 @@ static void test_GetVolumePathNameA(void)
 
     for (i=0; i<sizeof(test_paths)/sizeof(test_paths[0]); i++)
     {
-        BOOL broken_ret = test_paths[i].broken_error == NO_ERROR ? TRUE : FALSE;
+        BOOL broken_ret = test_paths[i].broken_error == NO_ERROR;
         char *output = (test_paths[i].path_name != NULL ? volume_path : NULL);
-        BOOL expected_ret = test_paths[i].error == NO_ERROR ? TRUE : FALSE;
+        BOOL expected_ret = test_paths[i].error == NO_ERROR;
 
         volume_path[0] = 0;
         if (test_paths[i].path_len < sizeof(volume_path))
-- 
2.4.3



More information about the wine-patches mailing list