mirror of
https://github.com/solemnwarning/ipxwrapper
synced 2024-12-30 16:45:37 +01:00
Load EnumProtocolsA/EnumProtocolsW functions directly from mswsock.dll to avoid stack overflow when the program uses mswsock.dll.
This commit is contained in:
parent
6fff1e839c
commit
812e6cd2ad
@ -113,9 +113,11 @@ void load_dll(unsigned int dllnum) {
|
||||
strcat(path, dll_names[dllnum]);
|
||||
}
|
||||
|
||||
dll_handles[dllnum] = LoadLibrary(dllnum ? path : dll_names[dllnum]);
|
||||
const char *dll = dllnum ? path : dll_names[dllnum];
|
||||
|
||||
dll_handles[dllnum] = LoadLibrary(dll);
|
||||
if(!dll_handles[dllnum]) {
|
||||
log_printf("Error loading %s: %s", path, w32_error(GetLastError()));
|
||||
log_printf("Error loading %s: %s", dll, w32_error(GetLastError()));
|
||||
abort();
|
||||
}
|
||||
}
|
||||
|
@ -17,8 +17,8 @@ WSAEventSelect:4
|
||||
WSACloseEvent:4
|
||||
WSAResetEvent:4
|
||||
WSASetEvent:4
|
||||
r_EnumProtocolsA:1
|
||||
r_EnumProtocolsW:1
|
||||
r_EnumProtocolsA:2
|
||||
r_EnumProtocolsW:2
|
||||
r_WSARecvEx:4
|
||||
r_bind:4
|
||||
r_closesocket:4
|
||||
|
Loading…
x
Reference in New Issue
Block a user