diff --git a/Source/DesktopImageSource.cpp b/Source/DesktopImageSource.cpp index 9e6fc546..54fda8de 100644 --- a/Source/DesktopImageSource.cpp +++ b/Source/DesktopImageSource.cpp @@ -800,6 +800,8 @@ void RefreshWindowList(HWND hwndCombobox, StringList &classList) String strText; strText << TEXT("[") << GetPathFileName(strFileName) << TEXT("]: ") << strWindowName; + if(strWindowName.IsEmpty()) strWindowName = GetPathFileName(strFileName); + int id = (int)SendMessage(hwndCombobox, CB_ADDSTRING, 0, (LPARAM)strWindowName.Array()); SendMessage(hwndCombobox, CB_SETITEMDATA, id, (LPARAM)hwndCurrent);