ws2_32: Cope with buggy apps passing setsockopt optval as a value instead of a pointer

Kai Blin kai.blin at gmail.com
Mon Nov 12 03:08:10 CST 2007


Both the punkbuster test client and the game Defcon pass a value 1 s opval 
when they
are supposed to pass a pointer to a memory location containing a 1.
Native copes with this, so should we.
---

This works around the issues mentioned in bugs 6321 and 10376.

---
 dlls/ws2_32/socket.c     |    7 +++++++
 dlls/ws2_32/tests/sock.c |   11 ++++++++++-
 2 files changed, 17 insertions(+), 1 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cba8a238214c9df078206d03274d2c42967bacfd.diff
Type: text/x-patch
Size: 1699 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20071112/20e9b2b1/attachment.bin 


More information about the wine-patches mailing list