mirror of
				https://git.suyu.dev/suyu/suyu.git
				synced 2025-11-04 12:34:39 +08:00 
			
		
		
		
	thread: fixed bug where result of __NextThread was not being properly checked when NULL
This commit is contained in:
		
							parent
							
								
									06e3c3d55a
								
							
						
					
					
						commit
						6a78be5930
					
				@ -194,7 +194,7 @@ Thread* __NextThread() {
 | 
			
		||||
    } else  {
 | 
			
		||||
        next = g_thread_ready_queue.pop_first();
 | 
			
		||||
    }
 | 
			
		||||
    if (next < 0) {
 | 
			
		||||
    if (next == 0) {
 | 
			
		||||
        return NULL;
 | 
			
		||||
    }
 | 
			
		||||
    return Kernel::g_object_pool.GetFast<Thread>(next);
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user