Author: cgutman
Date: Sat Sep 6 16:36:55 2008
New Revision: 36007
URL:
http://svn.reactos.org/svn/reactos?rev=36007&view=rev
Log:
- Check status from RawIPStartup, UDPStartup, and TCPStartup
Modified:
branches/aicom-network-fixes/drivers/network/tcpip/tcpip/main.c
Modified: branches/aicom-network-fixes/drivers/network/tcpip/tcpip/main.c
URL:
http://svn.reactos.org/svn/reactos/branches/aicom-network-fixes/drivers/net…
==============================================================================
--- branches/aicom-network-fixes/drivers/network/tcpip/tcpip/main.c [iso-8859-1]
(original)
+++ branches/aicom-network-fixes/drivers/network/tcpip/tcpip/main.c [iso-8859-1] Sat Sep
6 16:36:55 2008
@@ -760,9 +760,23 @@
IPStartup(RegistryPath);
/* Initialize transport level protocol subsystems */
- RawIPStartup();
- UDPStartup();
- TCPStartup();
+ Status = RawIPStartup();
+ if( !NT_SUCCESS(Status) ) {
+ TiUnload(DriverObject);
+ return Status;
+ }
+
+ Status = UDPStartup();
+ if( !NT_SUCCESS(Status) ) {
+ TiUnload(DriverObject);
+ return Status;
+ }
+
+ Status = TCPStartup();
+ if( !NT_SUCCESS(Status) ) {
+ TiUnload(DriverObject);
+ return Status;
+ }
/* Initialize the lan worker */
LANStartup();