mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 13:50:03 +00:00 
			
		
		
		
	HLE/IPC: Don't assert in HLERequestContext::AddStaticBuffer when there's already a static buffer with the desired id.
This could happen if the guest application performs a request with static buffer id X, and the service module responds with another static buffer with the same id X.
This commit is contained in:
		
							parent
							
								
									e9a95b2e7d
								
							
						
					
					
						commit
						9543e1a1bf
					
				
					 1 changed files with 0 additions and 1 deletions
				
			
		|  | @ -51,7 +51,6 @@ const std::vector<u8>& HLERequestContext::GetStaticBuffer(u8 buffer_id) const { | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| void HLERequestContext::AddStaticBuffer(u8 buffer_id, std::vector<u8> data) { | void HLERequestContext::AddStaticBuffer(u8 buffer_id, std::vector<u8> data) { | ||||||
|     ASSERT(static_buffers[buffer_id].empty() && !data.empty()); |  | ||||||
|     static_buffers[buffer_id] = std::move(data); |     static_buffers[buffer_id] = std::move(data); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue