diff win/dw.c @ 1870:5a4d98cab9d3

Fixed dw_tree_get_title() on Windows and implemented tests for dw_tree_get_title() and dw_tree_item_g/set_data() in the test program.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sat, 23 Mar 2013 19:52:38 +0000
parents a2d556368be1
children eae36372d64d
line wrap: on
line diff
--- a/win/dw.c	Thu Mar 21 22:10:43 2013 +0000
+++ b/win/dw.c	Sat Mar 23 19:52:38 2013 +0000
@@ -8819,6 +8819,8 @@
 
    tvi.mask = TVIF_HANDLE | TVIF_TEXT;
    tvi.hItem = item;
+   tvi.pszText = textptr;
+   tvi.cchTextMax = 1024;
 
    if(TreeView_GetItem(handle, &tvi))
       return _strdup(WideToUTF8(textptr));