Convert last error from NTSTATUS to a DOS error code in WaitNamedPipe

and ConnectNamedPipe.
This commit is contained in:
Robert Shearman 2005-02-08 12:08:04 +00:00 committed by Alexandre Julliard
parent 04995ce90d
commit 4a8b0d4c5b

View file

@ -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);
}
}