diff --git a/Library/DialogManage.cpp b/Library/DialogManage.cpp index 2791e699..20bd4d2b 100644 --- a/Library/DialogManage.cpp +++ b/Library/DialogManage.cpp @@ -787,7 +787,7 @@ void CDialogManage::CTabSkins::SelectTreeItem(HWND tree, HTREEITEM item, LPCWSTR const WCHAR* pos = wcschr(name, L'\\'); if (pos) { - const int folderLen = pos - name; + const int folderLen = (int)(pos - name); tvi.cchTextMax = folderLen + 1; // Length of folder name plus 1 for NULL // Find and expand the folder