mirror of
https://github.com/solemnwarning/ipxwrapper
synced 2024-12-30 16:45:37 +01:00
Added workarounds for Jane's Combat Simulations: WWWII Fighters
This commit is contained in:
parent
85edba72c4
commit
880024b8c8
@ -9,6 +9,8 @@ Version XXX:
|
||||
Bugfix: Fixed segfault in recvfrom when called with NULL addrlen.
|
||||
|
||||
Update: Log entry and target DLL of stub calls.
|
||||
|
||||
Feature: Added workarounds for Jane's Combat Simulations: WWWII Fighters.
|
||||
|
||||
Version 0.4.1:
|
||||
Feature: Added workaround for point-to-point links.
|
||||
|
@ -1092,6 +1092,33 @@ int WSAAPI setsockopt(SOCKET fd, int level, int optname, const char FAR *optval,
|
||||
{
|
||||
SET_FLAG(IPX_REUSE);
|
||||
}
|
||||
else if(optname == SO_LINGER && !(sock->flags & IPX_IS_SPX))
|
||||
{
|
||||
/* Setting SO_LINGER only has an effect on
|
||||
* stream sockets and fails on datagrams, but
|
||||
* Jane's Combat Simulations: WWWII Fighters
|
||||
* depends on the call succeeding.
|
||||
*/
|
||||
|
||||
log_printf(LOG_DEBUG, "Ignoring SO_LINGER on IPX socket %d", sock->fd);
|
||||
unlock_sockets();
|
||||
|
||||
return 0;
|
||||
}
|
||||
else if(optname == 16399)
|
||||
{
|
||||
/* As far as I can tell, this socket option
|
||||
* isn't defined anywhere and no tested version
|
||||
* of Windows accepts it on an IPX socket, but
|
||||
* Jane's Combat Simulations: WWWII Fighters
|
||||
* uses it and won't work if the call fails.
|
||||
*/
|
||||
|
||||
log_printf(LOG_DEBUG, "Ignoring unknown SOL_SOCKET option 16399 on socket %d", sock->fd);
|
||||
unlock_sockets();
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
unlock_sockets();
|
||||
|
Loading…
x
Reference in New Issue
Block a user