#6037 prevent object slicing in caught exception

This commit is contained in:
Andrew Nelless 2017-05-12 20:02:51 +01:00
parent c556184114
commit ae8db8b125
1 changed files with 1 additions and 1 deletions

View File

@ -187,7 +187,7 @@ MSWindowsSession::getActiveDesktopName()
CloseDesktop(hd);
}
}
catch (std::exception error) {
catch (std::exception& error) {
LOG((CLOG_ERR "failed to get active desktop name: %s", error.what()));
}