Rob Shearman : user32: Fix incorrect character count passed to GetWindowTextW in ICONTITLE_Paint.

Alexandre Julliard julliard at winehq.org
Fri Feb 15 05:36:00 CST 2008


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

Author: Rob Shearman <rob at codeweavers.com>
Date:   Thu Feb 14 14:39:07 2008 +0000

user32: Fix incorrect character count passed to GetWindowTextW in ICONTITLE_Paint.

---

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

diff --git a/dlls/user32/icontitle.c b/dlls/user32/icontitle.c
index d6995ba..aa8ebc5 100644
--- a/dlls/user32/icontitle.c
+++ b/dlls/user32/icontitle.c
@@ -181,7 +181,7 @@ static BOOL ICONTITLE_Paint( HWND hwnd, HWND owner, HDC hDC, BOOL bActive )
     {
 	WCHAR buffer[80];
 
-        INT length = GetWindowTextW( owner, buffer, sizeof(buffer) );
+        INT length = GetWindowTextW( owner, buffer, sizeof(buffer)/sizeof(buffer[0]) );
         SetTextColor( hDC, textColor );
         SetBkMode( hDC, TRANSPARENT );
 




More information about the wine-cvs mailing list