ws2_32: Cope with buggy apps passing setsockopt optval as a value instead of a pointer (try 2)

Kai Blin kai.blin at gmail.com
Mon Nov 12 04:42:28 CST 2007


Both the punkbuster test client and the game Defcon pass a value 1 as optval
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: ca4079d9f433fb344c0e529f61cfead3827a2d71.diff
Type: text/x-patch
Size: 1687 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20071112/b3b95a2c/attachment.bin 


More information about the wine-patches mailing list