Vijay Kiran Kamuju : comctl32: statusbar: Fix GetRect return value
bug.
Alexandre Julliard
julliard at wine.codeweavers.com
Wed Jan 3 05:37:33 CST 2007
Module: wine
Branch: master
Commit: c292c40d051a6322347870e98bfbed1d393a2194
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c292c40d051a6322347870e98bfbed1d393a2194
Author: Vijay Kiran Kamuju <infyquest at gmail.com>
Date: Mon Dec 25 15:13:52 2006 +0530
comctl32: statusbar: Fix GetRect return value bug.
---
dlls/comctl32/status.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/dlls/comctl32/status.c b/dlls/comctl32/status.c
index 85f7c6e..719e545 100644
--- a/dlls/comctl32/status.c
+++ b/dlls/comctl32/status.c
@@ -433,6 +433,8 @@ static BOOL
STATUSBAR_GetRect (STATUS_INFO *infoPtr, INT nPart, LPRECT rect)
{
TRACE("part %d\n", nPart);
+ if(nPart >= infoPtr->numParts || nPart < 0)
+ return FALSE;
if (infoPtr->simple)
*rect = infoPtr->part0.bound;
else
More information about the wine-cvs
mailing list