https://bugs.winehq.org/show_bug.cgi?id=38144
Bug ID: 38144 Summary: Condemned: Criminal Origins: online activation fails Product: Wine Version: 1.7.37 Hardware: x86 OS: Linux Status: NEW Keywords: regression Severity: normal Priority: P2 Component: wininet Assignee: wine-bugs@winehq.org Reporter: gyebro69@gmail.com CC: jacek@codeweavers.com Regression SHA1: 5436fef80722fe7896aed5e659c31fdade4ef5b3 Distribution: ---
Created attachment 50874 --> https://bugs.winehq.org/attachment.cgi?id=50874 +wininet,+winsock log
The game is protected with Securom v7.40 and requires online activation. After entering the serial number in the product activation dialog, I'm getting an error message: "Could not connect to the activation server"
The problem is present since
5436fef80722fe7896aed5e659c31fdade4ef5b3 is the first bad commit commit 5436fef80722fe7896aed5e659c31fdade4ef5b3 Author: Jacek Caban jacek@codeweavers.com Date: Fri Feb 13 12:12:29 2015 +0100
wininet: Always use winsock sockets.
https://bugs.winehq.org/show_bug.cgi?id=38144
--- Comment #1 from Bruno Jesus 00cpxxx@gmail.com --- 0039:trace:winsock:WSAStartup verReq=2 0039:trace:winsock:WSAStartup succeeded starts: 1 0039:trace:wininet:DllMain 0x7ce10000,1,(nil) 0039:trace:wininet:InternetGetConnectedState (0x24432d8, 0x00000000) 0039:warn:wininet:InternetGetConnectedState always returning LAN connection. 0039:trace:wininet:DllMain 0x7ce10000,0,(nil) 0039:trace:winsock:WSACleanup pending cleanups: 0 0039:trace:winsock:WS_gethostname name 0x2442ecc, len 1024 0039:trace:winsock:WS_gethostname <- 'gyebro-desktop' 0039:trace:winsock:WS_socket af=2 type=1 protocol=6 0039:trace:winsock:WSASocketA af=2 type=1 protocol=6 protocol_info=(nil) group=0 flags=0x1 0039:trace:winsock:WSASocketW af=2 type=1 protocol=6 protocol_info=(nil) group=0 flags=0x1 0039:warn:winsock:WSASocketW failed, error 10093!
Since WSACleanup was called somewhere winsock is no longer initialized so WSASocket returns error as expected. 10093 => WSANOTINITIALISED
https://bugs.winehq.org/show_bug.cgi?id=38144
--- Comment #2 from Jacek Caban jacek@codeweavers.com --- This patch should help:
http://source.winehq.org/patches/data/109343
https://bugs.winehq.org/show_bug.cgi?id=38144
--- Comment #3 from Béla Gyebrószki gyebro69@gmail.com --- (In reply to Jacek Caban from comment #2)
This patch should help:
It works indeed.
https://bugs.winehq.org/show_bug.cgi?id=38144
Béla Gyebrószki gyebro69@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |6d4abc78d0a224813200a226bbc | |cc1e16fd77738 Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #4 from Béla Gyebrószki gyebro69@gmail.com --- Patch committed: http://source.winehq.org/git/wine.git/commitdiff/6d4abc78d0a224813200a226bbc...
https://bugs.winehq.org/show_bug.cgi?id=38144
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #5 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 1.7.38.