[PATCH] comctl32: Removed array NULL check (Coverity)

Marcus Meissner meissner at suse.de
Mon Mar 14 20:37:02 CDT 2011


Hi,

CID 1719, removed useless array check.

Ciao, Marcus
---
 dlls/comctl32/tooltips.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/comctl32/tooltips.c b/dlls/comctl32/tooltips.c
index a2e58e0..2b29790 100644
--- a/dlls/comctl32/tooltips.c
+++ b/dlls/comctl32/tooltips.c
@@ -2051,7 +2051,7 @@ TOOLTIPS_OnWMGetText (const TOOLTIPS_INFO *infoPtr, WPARAM size, LPWSTR pszText)
 {
     LRESULT res;
 
-    if(!infoPtr->szTipText || !size)
+    if(!size)
         return 0;
 
     res = min(strlenW(infoPtr->szTipText)+1, size);
-- 
1.7.1



More information about the wine-patches mailing list