Browse Source
Merge pull request #9148 from liamwhite/crab-language-at-home
k_server_session: fix crashes
pull/15/merge
bunnei
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
1 additions and
2 deletions
-
src/core/hle/kernel/k_server_session.h
-
src/core/hle/service/sm/sm.cpp
|
|
|
@ -91,7 +91,7 @@ private: |
|
|
|
|
|
|
|
/// List of threads which are pending a reply. |
|
|
|
boost::intrusive::list<KSessionRequest> m_request_list; |
|
|
|
KSessionRequest* m_current_request; |
|
|
|
KSessionRequest* m_current_request{}; |
|
|
|
|
|
|
|
KLightLock m_lock; |
|
|
|
}; |
|
|
|
|
|
|
|
@ -80,7 +80,6 @@ ResultVal<Kernel::KPort*> ServiceManager::GetServicePort(const std::string& name |
|
|
|
} |
|
|
|
|
|
|
|
auto* port = Kernel::KPort::Create(kernel); |
|
|
|
SCOPE_EXIT({ port->Close(); }); |
|
|
|
|
|
|
|
port->Initialize(ServerSessionCountMax, false, name); |
|
|
|
auto handler = it->second; |
|
|
|
|