mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 05:40:04 +00:00 
			
		
		
		
	Kernel: Fix SVC wrapper for CreatePort
The return parameters were flipped.
This commit is contained in:
		
							parent
							
								
									aa0f3047d3
								
							
						
					
					
						commit
						8c6a8edaca
					
				
					 1 changed files with 2 additions and 3 deletions
				
			
		|  | @ -226,9 +226,8 @@ void Wrap() { | ||||||
|     u32 retval = func(¶m_1, ¶m_2, |     u32 retval = func(¶m_1, ¶m_2, | ||||||
|                       reinterpret_cast<const char*>(Memory::GetPointer(PARAM(2))), PARAM(3)) |                       reinterpret_cast<const char*>(Memory::GetPointer(PARAM(2))), PARAM(3)) | ||||||
|                      .raw; |                      .raw; | ||||||
|     // The first out parameter is moved into R2 and the second is moved into R1.
 |     Core::CPU().SetReg(1, param_1); | ||||||
|     Core::CPU().SetReg(1, param_2); |     Core::CPU().SetReg(2, param_2); | ||||||
|     Core::CPU().SetReg(2, param_1); |  | ||||||
|     FuncReturn(retval); |     FuncReturn(retval); | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue