mirror of
https://github.com/debauchee/barrier.git
synced 2026-02-07 20:34:28 +08:00
#6037 prevent object slicing in caught exception
This commit is contained in:
@@ -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()));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user