- Use Status instead of IOSB.Status in some cases

svn path=/branches/aicom-network-fixes/; revision=35129
This commit is contained in:
Cameron Gutman 2008-08-05 16:32:56 +00:00
parent 1fccbafaed
commit 8856c4a5a2

View file

@ -515,6 +515,7 @@ WSPBind(
/* Wait for return */ /* Wait for return */
if (Status == STATUS_PENDING) { if (Status == STATUS_PENDING) {
WaitForSingleObject(SockEvent, INFINITE); WaitForSingleObject(SockEvent, INFINITE);
Status = IOSB.Status;
} }
/* Set up Socket Data */ /* Set up Socket Data */
@ -524,7 +525,7 @@ WSPBind(
NtClose( SockEvent ); NtClose( SockEvent );
return MsafdReturnWithErrno return MsafdReturnWithErrno
( IOSB.Status, lpErrno, IOSB.Information, NULL ); ( Status, lpErrno, 0, NULL );
} }
int int
@ -568,6 +569,7 @@ WSPListen(
/* Wait for return */ /* Wait for return */
if (Status == STATUS_PENDING) { if (Status == STATUS_PENDING) {
WaitForSingleObject(SockEvent, INFINITE); WaitForSingleObject(SockEvent, INFINITE);
Status = IOSB.Status;
} }
/* Set to Listening */ /* Set to Listening */
@ -576,7 +578,7 @@ WSPListen(
NtClose( SockEvent ); NtClose( SockEvent );
return MsafdReturnWithErrno return MsafdReturnWithErrno
( IOSB.Status, lpErrno, IOSB.Information, NULL ); ( Status, lpErrno, 0, NULL );
} }
@ -1249,7 +1251,7 @@ WSPConnect(
NtClose( SockEvent ); NtClose( SockEvent );
return MsafdReturnWithErrno( IOSB.Status, lpErrno, 0, NULL ); return MsafdReturnWithErrno( Status, lpErrno, 0, NULL );
} }
int int
WSPAPI WSPAPI
@ -1312,13 +1314,14 @@ WSPShutdown(
/* Wait for return */ /* Wait for return */
if (Status == STATUS_PENDING) { if (Status == STATUS_PENDING) {
WaitForSingleObject(SockEvent, INFINITE); WaitForSingleObject(SockEvent, INFINITE);
Status = IOSB.Status;
} }
AFD_DbgPrint(MID_TRACE,("Ending\n")); AFD_DbgPrint(MID_TRACE,("Ending\n"));
NtClose( SockEvent ); NtClose( SockEvent );
return MsafdReturnWithErrno( IOSB.Status, lpErrno, 0, NULL ); return MsafdReturnWithErrno( Status, lpErrno, 0, NULL );
} }
@ -1403,7 +1406,7 @@ WSPGetSockName(
} }
return MsafdReturnWithErrno return MsafdReturnWithErrno
( IOSB.Status, lpErrno, 0, NULL ); ( Status, lpErrno, 0, NULL );
} }
@ -1488,7 +1491,7 @@ WSPGetPeerName(
} }
return MsafdReturnWithErrno return MsafdReturnWithErrno
( IOSB.Status, lpErrno, 0, NULL ); ( Status, lpErrno, 0, NULL );
} }
INT INT