Jacek Caban : include: Use RtlSetLastWin32Error in server.h.

Alexandre Julliard julliard at winehq.org
Wed Aug 10 14:53:21 CDT 2022


Module: wine
Branch: master
Commit: 2f0c2684b274d39197f8e85dc9ff64b8c6b31e5e
URL:    https://gitlab.winehq.org/wine/wine/-/commit/2f0c2684b274d39197f8e85dc9ff64b8c6b31e5e

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Tue Aug  9 21:50:58 2022 +0200

include: Use RtlSetLastWin32Error in server.h.

---

 include/wine/server.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/wine/server.h b/include/wine/server.h
index b05271b7522..228682dc914 100644
--- a/include/wine/server.h
+++ b/include/wine/server.h
@@ -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;
 }
 




More information about the wine-cvs mailing list