hle: kernel: k_server_session: Ensure service thread is valid before dereference.
This commit is contained in:
		@@ -119,9 +119,11 @@ ResultCode KServerSession::QueueSyncRequest(KThread* thread, Core::Memory::Memor
 | 
			
		||||
 | 
			
		||||
    context->PopulateFromIncomingCommandBuffer(kernel.CurrentProcess()->GetHandleTable(), cmd_buf);
 | 
			
		||||
 | 
			
		||||
    if (auto strong_ptr = manager->GetServiceThread().lock()) {
 | 
			
		||||
    if (auto strong_ptr = manager->GetServiceThread().lock(); strong_ptr) {
 | 
			
		||||
        strong_ptr->QueueSyncRequest(*parent, std::move(context));
 | 
			
		||||
        return ResultSuccess;
 | 
			
		||||
    } else {
 | 
			
		||||
        ASSERT(false, "strong_ptr was nullptr!");
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    return ResultSuccess;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user