WineHQ
Bug Tracking Database – Bug 4473

 Bugzilla

 

Last modified: 2013-11-15 13:39:49 UTC  

WSAStartup not needed before socket() call

Bug 4473 - WSAStartup not needed before socket() call
WSAStartup not needed before socket() call
Status: CLOSED FIXED
AppDB: Show Apps affected by this bug
Product: Wine
Classification: Unclassified
Component: winsock
0.9.3.
x86 Linux
: P2 normal
: ---
Assigned To: Bruno Jesus
:
Depends on:
Blocks:
  Show dependency tree
 
Reported: 2006-02-03 06:36 UTC by Rafał Maj Raf256
Modified: 2013-11-15 13:39 UTC (History)
2 users (show)

See Also:
Regression SHA1:
Fixed by SHA1: 2034f515981ead985c4c24fac7b6935326cdb490
Distribution: ---
Staged patchset:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rafał Maj Raf256 2006-02-03 06:36:32 UTC
On wine it seems that 
  sd = socket (AF_INET, SOCK_STREAM, 0); 
works even without calling WSAStartup first - it just works returning valid file
descriptor.

While on native windows using same code without calling WSAStartup first makes
it fail returning -1 file descriptor.
Comment 1 Marcus Meissner 2006-02-03 07:25:04 UTC
Yes, this is the case currently. 
 
Is the app expecting the previous call to fail? If this is the case, we might 
need to adjust it. 
Comment 2 Marcus Meissner 2008-01-02 03:45:01 UTC
no reply received
Comment 3 James Hawkins 2008-01-07 03:15:05 UTC
Closing abandoned.
Comment 4 Bruno Jesus 2013-09-15 22:25:27 UTC
I found an app that depends on this, it looks like it does a socket call expecting it to fail and then call WSAStartup. The required test is already commited.
Comment 6 Alexandre Julliard 2013-09-27 13:40:58 UTC
Closing bugs fixed in 1.7.3.
Comment 7 Alexandre Julliard 2013-11-15 13:39:49 UTC
Removing 1.6.x milestone from bugs included in 1.6.1.


Privacy Policy
If you have a privacy inquiry regarding this site, please write to [email protected]

Hosted By CodeWeavers