mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-11-03 23:28:48 +00:00 
			
		
		
		
	WaitSynchronizationN: Handle case where handles=nullptr.
This commit is contained in:
		
							parent
							
								
									f5c6d367c9
								
							
						
					
					
						commit
						627e96fc15
					
				
					 1 changed files with 4 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -148,6 +148,10 @@ static Result WaitSynchronizationN(s32* out, Handle* handles, s32 handle_count,
 | 
			
		|||
    bool wait_all_succeeded = false;
 | 
			
		||||
    int handle_index = 0;
 | 
			
		||||
 | 
			
		||||
    // Handles pointer is invalid
 | 
			
		||||
    if (handles == nullptr)
 | 
			
		||||
        return ResultCode(ErrorDescription::InvalidPointer, ErrorModule::Kernel, ErrorSummary::InvalidArgument, ErrorLevel::Permanent).raw;
 | 
			
		||||
 | 
			
		||||
    // Negative handle_count is invalid
 | 
			
		||||
    if (handle_count < 0)
 | 
			
		||||
        return ResultCode(ErrorDescription::OutOfRange, ErrorModule::OS, ErrorSummary::InvalidArgument, ErrorLevel::Usage).raw;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue