mirror of
				https://git.tardis.systems/mirrors/yuzu
				synced 2025-10-30 18:24:15 +01:00 
			
		
		
		
	Properly write out the command buffer when serving close request
This commit is contained in:
		
							parent
							
								
									9dcfef744c
								
							
						
					
					
						commit
						1cf6f5c623
					
				| @ -194,13 +194,16 @@ Result ServiceFrameworkBase::HandleSyncRequest(Kernel::KServerSession& session, | ||||
|                                                Kernel::HLERequestContext& ctx) { | ||||
|     const auto guard = LockService(); | ||||
| 
 | ||||
|     Result result = ResultSuccess; | ||||
| 
 | ||||
|     switch (ctx.GetCommandType()) { | ||||
|     case IPC::CommandType::Close: | ||||
|     case IPC::CommandType::TIPC_Close: { | ||||
|         session.Close(); | ||||
|         IPC::ResponseBuilder rb{ctx, 2}; | ||||
|         rb.Push(ResultSuccess); | ||||
|         return IPC::ERR_REMOTE_PROCESS_DEAD; | ||||
|         result = IPC::ERR_REMOTE_PROCESS_DEAD; | ||||
|         break; | ||||
|     } | ||||
|     case IPC::CommandType::ControlWithContext: | ||||
|     case IPC::CommandType::Control: { | ||||
| @ -227,7 +230,7 @@ Result ServiceFrameworkBase::HandleSyncRequest(Kernel::KServerSession& session, | ||||
|         ctx.WriteToOutgoingCommandBuffer(ctx.GetThread()); | ||||
|     } | ||||
| 
 | ||||
|     return ResultSuccess; | ||||
|     return result; | ||||
| } | ||||
| 
 | ||||
| /// Initialize Services
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user