Never run WSACleanup, it breaks the debugger. Some games do this

on startup just because, which decrements our WSA instance to zero.
This commit is contained in:
Ben Vanik 2015-07-29 21:41:39 -07:00
parent 9bea299a16
commit d8be8fdbbb
1 changed files with 4 additions and 1 deletions

View File

@ -219,7 +219,10 @@ SHIM_CALL NetDll_WSACleanup_shim(PPCContext* ppc_context,
uint32_t caller = SHIM_GET_ARG_32(0);
XELOGD("NetDll_WSACleanup(%d)", caller);
int ret = WSACleanup();
// Don't actually call WSACleanup - we use it for the debugger and such.
// int ret = WSACleanup();
int ret = 0;
SHIM_SET_RETURN_32(ret);
}