[PATCH 2/6] ws2_32: convert wsa errors to ntstatus in overlapped callbacks
Alexandre Julliard
julliard at winehq.org
Tue Jan 19 06:09:01 CST 2010
Mike Kaplinskiy <mike.kaplinskiy at gmail.com> writes:
> @@ -542,6 +542,35 @@ static inline DWORD NtStatusToWSAError( const DWORD status )
> return wserr;
> }
>
> +/* most ws2 overlapped functions return an ntstatus-based error code */
> +static inline NTSTATUS WSAErrorToNtStatus( const DWORD error )
> +{
In general conversions should go status->error, not the other way
around.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list