comctl32: Fix the character count passed to GetWindowTextW in TREEVIEW_Command.

oldstable
Rob Shearman 2008-02-15 10:05:48 +00:00 committed by Alexandre Julliard
parent affe20164e
commit 82c41bb596
1 changed files with 1 additions and 1 deletions

View File

@ -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);