mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-17 18:59:09 +00:00
Correct buffer size in LocalizationEditor treeview.
This commit is contained in:
@ -66,7 +66,7 @@ HTREEITEM AddLeaf(HWND hTree, HTREEITEM hParent, plString text, bool sort = true
|
|||||||
TVITEM tvi = {0};
|
TVITEM tvi = {0};
|
||||||
tvi.mask = TVIF_TEXT | TVIF_PARAM;
|
tvi.mask = TVIF_TEXT | TVIF_PARAM;
|
||||||
tvi.pszText = const_cast<LPWSTR>(buf.GetData());
|
tvi.pszText = const_cast<LPWSTR>(buf.GetData());
|
||||||
tvi.cchTextMax = static_cast<int>(text.GetSize());
|
tvi.cchTextMax = static_cast<int>(buf.GetSize());
|
||||||
tvi.lParam = NULL;
|
tvi.lParam = NULL;
|
||||||
|
|
||||||
TVINSERTSTRUCT tvins = {0};
|
TVINSERTSTRUCT tvins = {0};
|
||||||
|
Reference in New Issue
Block a user