Displaying 4 results from an estimated 4 matches for "wsasetlasterror".
Did you mean:
wsagetlasterror
2020 Aug 17
3
[nbdkit] Windows errno handling
...ed global
variable to exist with Windows DLLs, or at least not without a
bunch of work:
(https://docs.microsoft.com/en-us/previous-versions/visualstudio/visual-studio-6.0/aa270058(v=vs.60))
- To get and set the thread-local error from the last function
we must call WSAGetLastError and WSASetLastError.
- Error codes are integers with superficial similarity to errno codes
but different symbols and values (eg. WSAEINTR == 10004 is similar
to EINTR).
- I'm not sure if this is just a mingw thing or a Windows thing, but
mingw defines an <errno.h> header which has its own values...
2020 Aug 17
0
Re: [nbdkit] Windows errno handling
...exist with Windows DLLs, or at least not without a
> bunch of work:
> (https://docs.microsoft.com/en-us/previous-versions/visualstudio/visual-studio-6.0/aa270058(v=vs.60))
>
> - To get and set the thread-local error from the last function
> we must call WSAGetLastError and WSASetLastError.
>
> - Error codes are integers with superficial similarity to errno codes
> but different symbols and values (eg. WSAEINTR == 10004 is similar
> to EINTR).
>
> - I'm not sure if this is just a mingw thing or a Windows thing, but
> mingw defines an <errno.h&...
2018 Feb 27
2
tinc 1.1: missing PONG
...{
- writeable_io = io;
- break;
+ io->cb(io->data, IO_WRITE);
+
+ if(curgen != io_tree.generation) {
+ break;
+ }
}
+ }
- if(writeable_io) {
- writeable_io->cb(writeable_io->data, IO_WRITE);
- continue;
+ if(event_count > WSA_MAXIMUM_WAIT_EVENTS) {
+ WSASetLastError(WSA_INVALID_PARAMETER);
+ return(false);
}
- WSAEVENT *events = xmalloc(event_count * sizeof(*events));
+ WSAEVENT events[WSA_MAXIMUM_WAIT_EVENTS];
+ io_t *io_map[WSA_MAXIMUM_WAIT_EVENTS];
DWORD event_index = 0;
for splay_each(io_t, io, &io_tree) {
events[event_index] = io...
2015 Jan 23
0
Wine release 1.7.35
...FreeMibTable implementation.
Axel Davy (2):
d3d8/tests: Fix volume_dxt5_test getPixelColor check.
d3d8/tests: Fix test_3dc_formats getPixelColor check.
Bruno Jesus (9):
ws2_32: Ensure recv functions set last error to zero when they succeed.
ws2_32: Prefer SetLastError over WSASetLastError.
rsaenh: Don't reset the salt length after setting a salt for Base and Strong providers.
ws2_32: Trace getpeername() result.
iphlpapi: Set 0.0.0.0 as the IP and mask of disconnected interfaces.
oleaut32: Fix copy & paste issue in VarFormatNumber.
dplayx: Cache...