Browse Source

Fixed issue with checking correct case for included and excluded apps, caused these to not work

Scott Brogden 9 years ago
parent
commit
ecddb8a840
1 changed files with 3 additions and 1 deletions
  1. 3 1
      ClipboardViewer.cpp

+ 3 - 1
ClipboardViewer.cpp

@@ -309,9 +309,11 @@ bool CClipboardViewer::ValidActiveWnd()
 	if (activeApp == _T(""))
 	{
 		HWND active = ::GetForegroundWindow();
-		activeApp = GetProcessName(active, 0).MakeLower();
+		activeApp = GetProcessName(active, 0);
 	}
 
+	activeApp = activeApp.MakeLower();
+
 	CString includeApps = CGetSetOptions::GetCopyAppInclude().MakeLower();
 
 	Log(StrF(_T("INCLUDE app names: %s, Active App: %s"), includeApps, activeApp));