Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int __stdcall recv(SOCKET s, char *buf, int len, int flags)
- {
- struct _WSABUF Buffers; // [sp+0h] [bp-8h]@1
- Buffers.len = len;
- Buffers.buf = buf;
- buf = (char *)flags;
- if ( WSARecv(s, &Buffers, 1u, (LPDWORD)&len, (LPDWORD)&buf, 0, 0) == -1 )
- {
- len = -1;
- }
- else
- {
- if ( (unsigned __int16)buf & 0x8000 )
- {
- len = -len;
- SetLastError(0x2738u);
- }
- }
- return len;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement