mirror of
https://github.com/reactos/reactos.git
synced 2024-09-15 07:05:04 +00:00
- Use Status instead of IOSB.Status in some cases
svn path=/branches/aicom-network-fixes/; revision=35129
This commit is contained in:
parent
1fccbafaed
commit
8856c4a5a2
|
@ -515,6 +515,7 @@ WSPBind(
|
|||
/* Wait for return */
|
||||
if (Status == STATUS_PENDING) {
|
||||
WaitForSingleObject(SockEvent, INFINITE);
|
||||
Status = IOSB.Status;
|
||||
}
|
||||
|
||||
/* Set up Socket Data */
|
||||
|
@ -524,7 +525,7 @@ WSPBind(
|
|||
NtClose( SockEvent );
|
||||
|
||||
return MsafdReturnWithErrno
|
||||
( IOSB.Status, lpErrno, IOSB.Information, NULL );
|
||||
( Status, lpErrno, 0, NULL );
|
||||
}
|
||||
|
||||
int
|
||||
|
@ -568,6 +569,7 @@ WSPListen(
|
|||
/* Wait for return */
|
||||
if (Status == STATUS_PENDING) {
|
||||
WaitForSingleObject(SockEvent, INFINITE);
|
||||
Status = IOSB.Status;
|
||||
}
|
||||
|
||||
/* Set to Listening */
|
||||
|
@ -576,7 +578,7 @@ WSPListen(
|
|||
NtClose( SockEvent );
|
||||
|
||||
return MsafdReturnWithErrno
|
||||
( IOSB.Status, lpErrno, IOSB.Information, NULL );
|
||||
( Status, lpErrno, 0, NULL );
|
||||
}
|
||||
|
||||
|
||||
|
@ -1249,7 +1251,7 @@ WSPConnect(
|
|||
|
||||
NtClose( SockEvent );
|
||||
|
||||
return MsafdReturnWithErrno( IOSB.Status, lpErrno, 0, NULL );
|
||||
return MsafdReturnWithErrno( Status, lpErrno, 0, NULL );
|
||||
}
|
||||
int
|
||||
WSPAPI
|
||||
|
@ -1312,13 +1314,14 @@ WSPShutdown(
|
|||
/* Wait for return */
|
||||
if (Status == STATUS_PENDING) {
|
||||
WaitForSingleObject(SockEvent, INFINITE);
|
||||
Status = IOSB.Status;
|
||||
}
|
||||
|
||||
AFD_DbgPrint(MID_TRACE,("Ending\n"));
|
||||
|
||||
NtClose( SockEvent );
|
||||
|
||||
return MsafdReturnWithErrno( IOSB.Status, lpErrno, 0, NULL );
|
||||
return MsafdReturnWithErrno( Status, lpErrno, 0, NULL );
|
||||
}
|
||||
|
||||
|
||||
|
@ -1403,7 +1406,7 @@ WSPGetSockName(
|
|||
}
|
||||
|
||||
return MsafdReturnWithErrno
|
||||
( IOSB.Status, lpErrno, 0, NULL );
|
||||
( Status, lpErrno, 0, NULL );
|
||||
}
|
||||
|
||||
|
||||
|
@ -1488,7 +1491,7 @@ WSPGetPeerName(
|
|||
}
|
||||
|
||||
return MsafdReturnWithErrno
|
||||
( IOSB.Status, lpErrno, 0, NULL );
|
||||
( Status, lpErrno, 0, NULL );
|
||||
}
|
||||
|
||||
INT
|
||||
|
|
Loading…
Reference in a new issue