Used log system instead of stdout #4690

This commit is contained in:
Jerry (Xinyu Hou) 2015-05-26 17:12:58 -07:00
parent b34044ec6a
commit f063b094ec

View File

@ -565,7 +565,7 @@ MSWindowsWatchdog::testOutput(String buffer)
if (i != String::npos) {
size_t s = sizeof(g_activeDesktop);
String defaultDesktop("Default");
String sub = buffer.substr(s - 1, defaultDesktop.size());
String sub = buffer.substr(i + s - 1, defaultDesktop.size());
if (sub != defaultDesktop) {
m_autoElevated = true;
}