kernel/server_session: Provide a GetName() override

Given server sessions can be given a name, we should allow retrieving
it instead of using the default implementation of GetName(), which would
just return "[UNKNOWN KERNEL OBJECT]".
This commit is contained in:
Lioncash 2019-04-03 10:35:09 -04:00
parent e796351a0d
commit a074363a5d
1 changed files with 4 additions and 0 deletions

View File

@ -41,6 +41,10 @@ public:
return "ServerSession";
}
std::string GetName() const override {
return name;
}
static const HandleType HANDLE_TYPE = HandleType::ServerSession;
HandleType GetHandleType() const override {
return HANDLE_TYPE;