fix(native): preserve stock socket export ordinals
Keep the original ordinals for functions imported by number so Windows can resolve the socket library imports during startup.
This commit is contained in:
1 parent
2428b34497
commit
b6b6effef3
1 file changed
+32
-31
@@ -1,14 +1,15 @@
|
|||||||
; wto_ws.dll exports: every function aces.exe 2.61.0.37 imports from WS2_32.dll, forwarded to the
|
; wto_ws.dll exports: every function aces.exe 2.61.0.37 imports from WS2_32.dll, forwarded to the
|
||||||
; system ws2_32.dll (whose resolution and connection functions the DLL hooks, dll_main.c).
|
; system ws2_32.dll (whose resolution and connection functions the DLL hooks, dll_main.c).
|
||||||
|
; 31 of them are imported by ordinal, so they keep ws2_32's ordinals (@n).
|
||||||
; Regenerate from the executable's import table when the game version changes.
|
; Regenerate from the executable's import table when the game version changes.
|
||||||
LIBRARY wto_ws
|
LIBRARY wto_ws
|
||||||
EXPORTS
|
EXPORTS
|
||||||
WSACleanup=ws2_32.WSACleanup
|
WSACleanup=ws2_32.WSACleanup @116
|
||||||
WSACloseEvent=ws2_32.WSACloseEvent
|
WSACloseEvent=ws2_32.WSACloseEvent
|
||||||
WSACreateEvent=ws2_32.WSACreateEvent
|
WSACreateEvent=ws2_32.WSACreateEvent
|
||||||
WSAEnumNetworkEvents=ws2_32.WSAEnumNetworkEvents
|
WSAEnumNetworkEvents=ws2_32.WSAEnumNetworkEvents
|
||||||
WSAEventSelect=ws2_32.WSAEventSelect
|
WSAEventSelect=ws2_32.WSAEventSelect
|
||||||
WSAGetLastError=ws2_32.WSAGetLastError
|
WSAGetLastError=ws2_32.WSAGetLastError @111
|
||||||
WSAIoctl=ws2_32.WSAIoctl
|
WSAIoctl=ws2_32.WSAIoctl
|
||||||
WSARecv=ws2_32.WSARecv
|
WSARecv=ws2_32.WSARecv
|
||||||
WSARecvFrom=ws2_32.WSARecvFrom
|
WSARecvFrom=ws2_32.WSARecvFrom
|
||||||
@@ -16,39 +17,39 @@ EXPORTS
|
|||||||
WSASend=ws2_32.WSASend
|
WSASend=ws2_32.WSASend
|
||||||
WSASendTo=ws2_32.WSASendTo
|
WSASendTo=ws2_32.WSASendTo
|
||||||
WSASetEvent=ws2_32.WSASetEvent
|
WSASetEvent=ws2_32.WSASetEvent
|
||||||
WSASetLastError=ws2_32.WSASetLastError
|
WSASetLastError=ws2_32.WSASetLastError @112
|
||||||
WSASocketA=ws2_32.WSASocketA
|
WSASocketA=ws2_32.WSASocketA
|
||||||
WSAStartup=ws2_32.WSAStartup
|
WSAStartup=ws2_32.WSAStartup @115
|
||||||
WSAWaitForMultipleEvents=ws2_32.WSAWaitForMultipleEvents
|
WSAWaitForMultipleEvents=ws2_32.WSAWaitForMultipleEvents
|
||||||
__WSAFDIsSet=ws2_32.__WSAFDIsSet
|
__WSAFDIsSet=ws2_32.__WSAFDIsSet @151
|
||||||
accept=ws2_32.accept
|
accept=ws2_32.accept @1
|
||||||
bind=ws2_32.bind
|
bind=ws2_32.bind @2
|
||||||
closesocket=ws2_32.closesocket
|
closesocket=ws2_32.closesocket @3
|
||||||
connect=ws2_32.connect
|
connect=ws2_32.connect @4
|
||||||
freeaddrinfo=ws2_32.freeaddrinfo
|
freeaddrinfo=ws2_32.freeaddrinfo
|
||||||
getaddrinfo=ws2_32.getaddrinfo
|
getaddrinfo=ws2_32.getaddrinfo
|
||||||
gethostbyname=ws2_32.gethostbyname
|
gethostbyname=ws2_32.gethostbyname @52
|
||||||
gethostname=ws2_32.gethostname
|
gethostname=ws2_32.gethostname @57
|
||||||
getnameinfo=ws2_32.getnameinfo
|
getnameinfo=ws2_32.getnameinfo
|
||||||
getpeername=ws2_32.getpeername
|
getpeername=ws2_32.getpeername @5
|
||||||
getservbyname=ws2_32.getservbyname
|
getservbyname=ws2_32.getservbyname @55
|
||||||
getsockname=ws2_32.getsockname
|
getsockname=ws2_32.getsockname @6
|
||||||
getsockopt=ws2_32.getsockopt
|
getsockopt=ws2_32.getsockopt @7
|
||||||
htonl=ws2_32.htonl
|
htonl=ws2_32.htonl @8
|
||||||
htons=ws2_32.htons
|
htons=ws2_32.htons @9
|
||||||
inet_addr=ws2_32.inet_addr
|
inet_addr=ws2_32.inet_addr @11
|
||||||
inet_ntoa=ws2_32.inet_ntoa
|
inet_ntoa=ws2_32.inet_ntoa @12
|
||||||
inet_ntop=ws2_32.inet_ntop
|
inet_ntop=ws2_32.inet_ntop
|
||||||
inet_pton=ws2_32.inet_pton
|
inet_pton=ws2_32.inet_pton
|
||||||
ioctlsocket=ws2_32.ioctlsocket
|
ioctlsocket=ws2_32.ioctlsocket @10
|
||||||
listen=ws2_32.listen
|
listen=ws2_32.listen @13
|
||||||
ntohl=ws2_32.ntohl
|
ntohl=ws2_32.ntohl @14
|
||||||
ntohs=ws2_32.ntohs
|
ntohs=ws2_32.ntohs @15
|
||||||
recv=ws2_32.recv
|
recv=ws2_32.recv @16
|
||||||
recvfrom=ws2_32.recvfrom
|
recvfrom=ws2_32.recvfrom @17
|
||||||
select=ws2_32.select
|
select=ws2_32.select @18
|
||||||
send=ws2_32.send
|
send=ws2_32.send @19
|
||||||
sendto=ws2_32.sendto
|
sendto=ws2_32.sendto @20
|
||||||
setsockopt=ws2_32.setsockopt
|
setsockopt=ws2_32.setsockopt @21
|
||||||
shutdown=ws2_32.shutdown
|
shutdown=ws2_32.shutdown @22
|
||||||
socket=ws2_32.socket
|
socket=ws2_32.socket @23
|
||||||
Reference in new issue
Block a user