imm32: Use a simpler comparison of a pointer with NULL.

Michael Stefaniuc mstefani at redhat.de
Fri May 22 15:23:17 CDT 2009


Fixes the -Wextra compiler warning:
dlls/imm32/imm.c:531: warning: ordered comparison of pointer with
integer zero
---
 dlls/imm32/imm.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/imm32/imm.c b/dlls/imm32/imm.c
index c7d170c..cb97ecd 100644
--- a/dlls/imm32/imm.c
+++ b/dlls/imm32/imm.c
@@ -528,7 +528,7 @@ BOOL WINAPI ImmAssociateContextEx(HWND hWnd, HIMC hIMC, DWORD dwFlags)
     }
     else if (dwFlags == IACE_IGNORENOCONTEXT)
     {
-        if (GetPropW(hWnd,szwWineIMCProperty) > 0)
+        if (GetPropW(hWnd,szwWineIMCProperty))
             ImmAssociateContext(hWnd,hIMC);
         return TRUE;
     }
-- 
1.6.3



More information about the wine-patches mailing list