mirror of
				https://git.tardis.systems/mirrors/yuzu
				synced 2025-10-31 10:44:49 +01:00 
			
		
		
		
	Update sockets_translate.cpp
Add support for the CONNREFUSED Errno. Without this Connect() will return SUCCESS when a connection is refused, instead of an error code. This causes code, that relies on the result of Connect() being SUCCESS, to execute when it shouldn't.
This commit is contained in:
		
							parent
							
								
									8ddfecfbae
								
							
						
					
					
						commit
						3acf35bb98
					
				| @ -15,6 +15,8 @@ Errno Translate(Network::Errno value) { | ||||
|     switch (value) { | ||||
|     case Network::Errno::SUCCESS: | ||||
|         return Errno::SUCCESS; | ||||
|     case Network::Errno::CONNREFUSED: | ||||
|         return Errno::CONNREFUSED; | ||||
|     case Network::Errno::BADF: | ||||
|         return Errno::BADF; | ||||
|     case Network::Errno::AGAIN: | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user