Marcus Meissner : riched20: Removed unneeded NULL check (Coverity).

Alexandre Julliard julliard at winehq.org
Thu Jan 29 09:15:15 CST 2009


Module: wine
Branch: master
Commit: 4662271afdbcf67e87fafb847f7c0431dc8e0e77
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=4662271afdbcf67e87fafb847f7c0431dc8e0e77

Author: Marcus Meissner <marcus at jet.franken.de>
Date:   Thu Jan 29 09:26:40 2009 +0100

riched20: Removed unneeded NULL check (Coverity).

---

 dlls/riched20/editor.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/riched20/editor.c b/dlls/riched20/editor.c
index 4495fb4..574118a 100644
--- a/dlls/riched20/editor.c
+++ b/dlls/riched20/editor.c
@@ -4059,7 +4059,7 @@ LRESULT ME_HandleMessage(ME_TextEditor *editor, UINT msg, WPARAM wParam,
     origNPos = editor->vert_si.nPos;
     lineHeight = 24;
 
-    if (editor && editor->pBuffer && editor->pBuffer->pDefaultStyle)
+    if (editor->pBuffer && editor->pBuffer->pDefaultStyle)
       lineHeight = editor->pBuffer->pDefaultStyle->tm.tmHeight;
     if (lineHeight <= 0) lineHeight = 24;
 




More information about the wine-cvs mailing list