From 4a8b0d4c5b892201b65fe814d4b39932267723ea Mon Sep 17 00:00:00 2001 From: Robert Shearman Date: Tue, 8 Feb 2005 12:08:04 +0000 Subject: [PATCH] Convert last error from NTSTATUS to a DOS error code in WaitNamedPipe and ConnectNamedPipe. --- dlls/kernel/sync.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlls/kernel/sync.c b/dlls/kernel/sync.c index 70d04ce5650..225162aa5a6 100644 --- a/dlls/kernel/sync.c +++ b/dlls/kernel/sync.c @@ -1250,7 +1250,7 @@ BOOL WINAPI WaitNamedPipeW (LPCWSTR name, DWORD nTimeOut) { if (WAIT_OBJECT_0==WaitForSingleObject(ov.hEvent,INFINITE)) { - SetLastError(ov.Internal); + SetLastError(RtlNtStatusToDosError(ov.Internal)); ret = (ov.Internal==STATUS_SUCCESS); } } @@ -1310,7 +1310,7 @@ BOOL WINAPI ConnectNamedPipe(HANDLE hPipe, LPOVERLAPPED overlapped) { if (WAIT_OBJECT_0==WaitForSingleObject(ov.hEvent,INFINITE)) { - SetLastError(ov.Internal); + SetLastError(RtlNtStatusToDosError(ov.Internal)); ret = (ov.Internal==STATUS_SUCCESS); } }