Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/jp9000/OBS
Browse files Browse the repository at this point in the history
  • Loading branch information
jp9000 committed Nov 14, 2013
2 parents ecae59f + 38635c4 commit 3aa7a96
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/DesktopImageSource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 3aa7a96

Please sign in to comment.