mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-30 21:30:04 +00:00 
			
		
		
		
	thread: fixed bug where result of __NextThread was not being properly checked when NULL
This commit is contained in:
		
							parent
							
								
									06e3c3d55a
								
							
						
					
					
						commit
						6a78be5930
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -194,7 +194,7 @@ Thread* __NextThread() { | ||||||
|     } else  { |     } else  { | ||||||
|         next = g_thread_ready_queue.pop_first(); |         next = g_thread_ready_queue.pop_first(); | ||||||
|     } |     } | ||||||
|     if (next < 0) { |     if (next == 0) { | ||||||
|         return NULL; |         return NULL; | ||||||
|     } |     } | ||||||
|     return Kernel::g_object_pool.GetFast<Thread>(next); |     return Kernel::g_object_pool.GetFast<Thread>(next); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue