http://bugs.winehq.org/show_bug.cgi?id=31994
--- Comment #18 from Starous starous@volny.cz 2012-10-23 09:35:05 CDT --- (In reply to comment #16)
(In reply to comment #15)
You have got to be joking, Windows will really allow you to send a broadcast packet without a permissions check? This has got to only be when you send interface-specific broadcasts (though that's still ridiculous).
Maybe windows checks the destination IP and automagically set SO_BROADCAST and then disables before the function return. I have used UDP broadcast for a long time in VB6 before finding out what was SO_BROADCAST.
Only my stupid note: Even I have no relevant knowledges about winsock, I agree with Bruno - from one simple reason: This game runs without problems in many variants of pure Windows (W98, W2k, WXP). So, Windows do probably the thing in the way which Bruno guess.
(My simple patch is only provisional, finally it should to (at least) do something similar like Bruno told above, i.e., it should test if EACCES is related to broadcast packet according to destination IP. Or maybe better: patch should test destination IP address before calling of WS2_send and modify the packet appropriately - like (probably) do Windows...)
BR