Michael Stefaniuc : kernel32: Remove redundant not 0 check (coccinellery).

Alexandre Julliard julliard at winehq.org
Wed Feb 20 16:37:01 CST 2019


Module: wine
Branch: master
Commit: 099303c4590d0f76274f9e9cdbc707fee6e3209b
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=099303c4590d0f76274f9e9cdbc707fee6e3209b

Author: Michael Stefaniuc <mstefani at winehq.org>
Date:   Wed Feb 20 20:54:25 2019 +0100

kernel32: Remove redundant not 0 check (coccinellery).

Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/kernel32/module.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/kernel32/module.c b/dlls/kernel32/module.c
index 3419898..eb0471c 100644
--- a/dlls/kernel32/module.c
+++ b/dlls/kernel32/module.c
@@ -1612,7 +1612,7 @@ DWORD WINAPI K32GetModuleFileNameExA(HANDLE process, HMODULE module,
     if ( process == GetCurrentProcess() )
     {
         len = GetModuleFileNameA( module, file_name, size );
-        if (size) file_name[size - 1] = '\0';
+        file_name[size - 1] = '\0';
         return len;
     }
 




More information about the wine-cvs mailing list