include: Use RtlSetLastWin32Error in server.h.

This commit is contained in:
Jacek Caban 2022-08-09 21:50:58 +02:00 committed by Alexandre Julliard
parent 35ae4703c4
commit 2f0c2684b2

View file

@ -57,7 +57,7 @@ extern NTSTATUS CDECL wine_server_handle_to_fd( HANDLE handle, unsigned int acce
static inline unsigned int wine_server_call_err( void *req_ptr )
{
unsigned int res = wine_server_call( req_ptr );
if (res) SetLastError( RtlNtStatusToDosError(res) );
if (res) RtlSetLastWin32Error( RtlNtStatusToDosError(res) );
return res;
}