#6037 prevent object slicing in caught exception
This commit is contained in:
parent
c556184114
commit
ae8db8b125
|
@ -187,7 +187,7 @@ MSWindowsSession::getActiveDesktopName()
|
||||||
CloseDesktop(hd);
|
CloseDesktop(hd);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (std::exception error) {
|
catch (std::exception& error) {
|
||||||
LOG((CLOG_ERR "failed to get active desktop name: %s", error.what()));
|
LOG((CLOG_ERR "failed to get active desktop name: %s", error.what()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue