comctl32: Test text buffer passed to TVN_ENDLABELEDIT is always MAX_PATH chars long.
Signed-off-by: Damjan Jovanovic <damjan.jov@gmail.com> Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
8fd0ecc6cd
commit
565b0f5d50
|
@ -1320,7 +1320,13 @@ static LRESULT CALLBACK parent_wnd_proc(HWND hWnd, UINT message, WPARAM wParam,
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
case TVN_ENDLABELEDITA: return TRUE;
|
case TVN_ENDLABELEDITA:
|
||||||
|
{
|
||||||
|
NMTVDISPINFOA *disp = (NMTVDISPINFOA *)lParam;
|
||||||
|
if (disp->item.mask & TVIF_TEXT)
|
||||||
|
todo_wine ok(disp->item.cchTextMax == MAX_PATH, "cchTextMax is %d\n", disp->item.cchTextMax);
|
||||||
|
return TRUE;
|
||||||
|
}
|
||||||
case TVN_ITEMEXPANDINGA:
|
case TVN_ITEMEXPANDINGA:
|
||||||
{
|
{
|
||||||
UINT newmask = pTreeView->itemNew.mask & ~TVIF_CHILDREN;
|
UINT newmask = pTreeView->itemNew.mask & ~TVIF_CHILDREN;
|
||||||
|
|
Loading…
Reference in New Issue