Gerald Pfeifer : winhelp: Remove a dead condition.

Alexandre Julliard julliard at winehq.org
Mon Dec 31 12:32:38 CST 2007


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

Author: Gerald Pfeifer <gerald at pfeifer.com>
Date:   Sat Dec 29 20:57:03 2007 +0100

winhelp: Remove a dead condition.

---

 programs/winhelp/winhelp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/programs/winhelp/winhelp.c b/programs/winhelp/winhelp.c
index f92a12c..ab516e8 100644
--- a/programs/winhelp/winhelp.c
+++ b/programs/winhelp/winhelp.c
@@ -1219,7 +1219,7 @@ static LRESULT CALLBACK WINHELP_TextWndProc(HWND hWnd, UINT msg, WPARAM wParam,
                 hlpfile = WINHELP_LookupHelpFile(part->link->lpszString);
                 if (part->link->window == -1)
                     wi = win->info;
-                else if ((part->link->window >= 0) && (part->link->window < hlpfile->numWindows))
+                else if (part->link->window < hlpfile->numWindows)
                     wi = &hlpfile->windows[part->link->window];
                 else
                 {




More information about the wine-cvs mailing list