https://bugs.winehq.org/show_bug.cgi?id=21535
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download Status|NEW |RESOLVED URL| |http://www.gamershell.com/d | |ownload_105145.shtml CC| |focht@gmx.net Component|-unknown |winsock Resolution|--- |DUPLICATE Summary|SilkRoad Online Crash |SilkRoad Online Client v1.x |Without reasons. |reports 'Failed to | |initialize NetEngine [Error | |Code(5,127)]' | |(SIO_GET_EXTENSION_FUNCTION | |_POINTER: unimplemented | |TransmitFile)
--- Comment #11 from Anastasius Focht focht@gmx.net --- Hello folks,
confirming the error message although the client continues to load despite the error.
Actually a dupe of bug 5048
--- snip --- $ pwd /home/focht/.wine/drive_c/Program Files/Silkroad ... $ WINEDEBUG=+tid,+seh,+relay wine ./Silkroad.exe >>log.txt 2>&1 ... 002a:Call ws2_32.WSAStartup(00000202,0033d930) ret=00420cdc 002a:Ret ws2_32.WSAStartup() retval=00000000 ret=00420cdc 002a:Call ws2_32.socket(00000002,00000001,00000000) ret=00420abf 002a:Ret ws2_32.socket() retval=00000010 ret=00420abf 002a:Call ws2_32.WSAIoctl(00000010,c8000006,0033da94,00000010,004d9f9c,00000004,0033da90,00000000,00000000) ret=00420b27 002a:Ret ws2_32.WSAIoctl() retval=00000000 ret=00420b27 002a:Call ws2_32.WSAIoctl(00000010,c8000006,0033daa4,00000010,004d9fa0,00000004,0033da90,00000000,00000000) ret=00420bca 002a:Ret ws2_32.WSAIoctl() retval=00000000 ret=00420bca 002a:Call ws2_32.WSAIoctl(00000010,c8000006,0033dab4,00000010,004d9fa4,00000004,0033da90,00000000,00000000) ret=00420c42 002a:fixme:winsock:WSAIoctl SIO_GET_EXTENSION_FUNCTION_POINTER: unimplemented TransmitFile 002a:Ret ws2_32.WSAIoctl() retval=ffffffff ret=00420c42 002a:Call KERNEL32.GetProcAddress(00000000,004a8f14 "TransmitFile") ret=00420c53 002a:Ret KERNEL32.GetProcAddress() retval=00000000 ret=00420c53 002a:Call ws2_32.WSAGetLastError() ret=00420b54 002a:Ret ws2_32.WSAGetLastError() retval=0000007f ret=00420b54 002a:Call ws2_32.closesocket(00000010) ret=00420b5b 002a:Call KERNEL32.CloseHandle(00000010) ret=7e2232a9 002a:Ret KERNEL32.CloseHandle() retval=00000001 ret=7e2232a9 002a:Ret ws2_32.closesocket() retval=00000000 ret=00420b5b 002a:Call ws2_32.WSACleanup() ret=00420d3c 002a:Ret ws2_32.WSACleanup() retval=00000000 ret=00420d3c ... 002a:Call user32.MessageBoxA(00000000,0033de2c "Failed to initialize NetEngine [Error Code(5,127)]",004c4f44 "Silkroad Online",00000030) ret=0043924f --- snip ---
GetProcAddress() with NULL module handle after failing WSAIoctl() is just result of sloppy code. Upon WSAIoctl() failure it should fall back to 'mswsock.dll' TransmitFile() but the code path loading the library 'mswsock.dll' is not hit before.
$ sha1sum SilkroadOnline_GlobalOfficial_v1_403.exe bc159988ea8fff3b914e68324a30325c2238006d SilkroadOnline_GlobalOfficial_v1_403.exe
$ du -sh SilkroadOnline_GlobalOfficial_v1_403.exe 1.3G SilkroadOnline_GlobalOfficial_v1_403.exe
$ wine --version wine-1.7.12-125-g9ca4f9b
Regards
*** This bug has been marked as a duplicate of bug 5048 ***