20 Aug
2009
20 Aug
'09
3:58 p.m.
Juan Lang <juan.lang(a)gmail.com> writes:
@@ -1779,6 +1779,8 @@ INT WINAPI WS_getsockopt(SOCKET s, INT level, TRACE("socket: %04lx, level 0x%x, name 0x%x, ptr %p, len %d\n", s, level, optname, optval, *optlen);
+ /* Some apps sign-extend the level, so mask off the higher-order bits */ + level &= 0x0000ffff;
There can be several other ways to handle this, it needs test cases to determine which way Windows is using. -- Alexandre Julliard julliard(a)winehq.org