Author: cgutman Date: Tue Aug 5 11:32:56 2008 New Revision: 35129
URL: http://svn.reactos.org/svn/reactos?rev=35129&view=rev Log: - Use Status instead of IOSB.Status in some cases
Modified: branches/aicom-network-fixes/dll/win32/msafd/misc/dllmain.c
Modified: branches/aicom-network-fixes/dll/win32/msafd/misc/dllmain.c URL: http://svn.reactos.org/svn/reactos/branches/aicom-network-fixes/dll/win32/ms... ============================================================================== --- branches/aicom-network-fixes/dll/win32/msafd/misc/dllmain.c [iso-8859-1] (original) +++ branches/aicom-network-fixes/dll/win32/msafd/misc/dllmain.c [iso-8859-1] Tue Aug 5 11:32:56 2008 @@ -515,6 +515,7 @@ /* Wait for return */ if (Status == STATUS_PENDING) { WaitForSingleObject(SockEvent, INFINITE); + Status = IOSB.Status; } /* Set up Socket Data */ @@ -524,7 +525,7 @@ NtClose( SockEvent );
return MsafdReturnWithErrno - ( IOSB.Status, lpErrno, IOSB.Information, NULL ); + ( Status, lpErrno, 0, NULL ); }
int @@ -568,6 +569,7 @@ /* Wait for return */ if (Status == STATUS_PENDING) { WaitForSingleObject(SockEvent, INFINITE); + Status = IOSB.Status; }
/* Set to Listening */ @@ -576,7 +578,7 @@ NtClose( SockEvent );
return MsafdReturnWithErrno - ( IOSB.Status, lpErrno, IOSB.Information, NULL ); + ( Status, lpErrno, 0, NULL ); }
@@ -1249,7 +1251,7 @@
NtClose( SockEvent );
- return MsafdReturnWithErrno( IOSB.Status, lpErrno, 0, NULL ); + return MsafdReturnWithErrno( Status, lpErrno, 0, NULL ); } int WSPAPI @@ -1312,13 +1314,14 @@ /* 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 @@ }
return MsafdReturnWithErrno - ( IOSB.Status, lpErrno, 0, NULL ); + ( Status, lpErrno, 0, NULL ); }
@@ -1488,7 +1491,7 @@ }
return MsafdReturnWithErrno - ( IOSB.Status, lpErrno, 0, NULL ); + ( Status, lpErrno, 0, NULL ); }
INT