Convert last error from NTSTATUS to a DOS error code in WaitNamedPipe
and ConnectNamedPipe.
This commit is contained in:
parent
04995ce90d
commit
4a8b0d4c5b
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue