Rob Shearman : comctl32: Fix the character count passed to GetWindowTextW in TREEVIEW_Command.
Alexandre Julliard
julliard at winehq.org
Sat Feb 16 09:57:23 CST 2008
Module: wine
Branch: master
Commit: 82c41bb596164b83901014d6a8d513be8752b189
URL: http://source.winehq.org/git/wine.git/?a=commit;h=82c41bb596164b83901014d6a8d513be8752b189
Author: Rob Shearman <rob at codeweavers.com>
Date: Fri Feb 15 10:05:48 2008 +0000
comctl32: Fix the character count passed to GetWindowTextW in TREEVIEW_Command.
---
dlls/comctl32/treeview.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/comctl32/treeview.c b/dlls/comctl32/treeview.c
index 89d7218..bff38f6 100644
--- a/dlls/comctl32/treeview.c
+++ b/dlls/comctl32/treeview.c
@@ -3584,7 +3584,7 @@ TREEVIEW_Command(TREEVIEW_INFO *infoPtr, WPARAM wParam, LPARAM lParam)
infoPtr->bLabelChanged = TRUE;
- len = GetWindowTextW(infoPtr->hwndEdit, buffer, sizeof(buffer));
+ len = GetWindowTextW(infoPtr->hwndEdit, buffer, sizeof(buffer)/sizeof(buffer[0]));
/* Select font to get the right dimension of the string */
hFont = (HFONT)SendMessageW(infoPtr->hwndEdit, WM_GETFONT, 0, 0);
More information about the wine-cvs
mailing list