[PATCH] comdlg32: removed useless NULL check (Coverity)

Marcus Meissner meissner at suse.de
Mon Mar 14 20:26:04 CDT 2011


Hi,

Again a NULL check against an array, CID 1720.

Ciao, Marcus
---
 dlls/comdlg32/filedlg.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/dlls/comdlg32/filedlg.c b/dlls/comdlg32/filedlg.c
index 2fb0969..c65c1f7 100644
--- a/dlls/comdlg32/filedlg.c
+++ b/dlls/comdlg32/filedlg.c
@@ -3219,10 +3219,7 @@ static LRESULT FILEDLG95_LOOKIN_DrawItem(LPDRAWITEMSTRUCT pDIStruct)
                  ILD_TRANSPARENT );
 
   /* Draw the associated text */
-  if(sfi.szDisplayName)
-    TextOutW(pDIStruct->hDC,rectText.left,rectText.top,sfi.szDisplayName,lstrlenW(sfi.szDisplayName));
-
-
+  TextOutW(pDIStruct->hDC,rectText.left,rectText.top,sfi.szDisplayName,lstrlenW(sfi.szDisplayName));
   return NOERROR;
 }
 
-- 
1.7.1



More information about the wine-patches mailing list