[RTL8139]

- Fix PCH in CMake file
- Fix broken failure path in MiniportInitialize

svn path=/trunk/; revision=59428
This commit is contained in:
Cameron Gutman 2013-07-05 05:48:08 +00:00
parent 50c8f14805
commit 7630a9f60a
2 changed files with 3 additions and 1 deletions

View file

@ -12,7 +12,7 @@ list(APPEND SOURCE
rtl8139.rc)
add_library(rtl8139 SHARED ${SOURCE})
add_pch(rtl8139 pcnet.h)
add_pch(rtl8139 nic.h)
set_module_type(rtl8139 kernelmodedriver)
add_importlibs(rtl8139 ndis ntoskrnl hal)
add_cd_file(TARGET rtl8139 DESTINATION reactos/system32/drivers FOR all)

View file

@ -356,6 +356,7 @@ MiniportInitialize (
if (adapter->ReceiveBuffer == NULL)
{
NDIS_DbgPrint(MIN_TRACE, ("Unable to allocate receive buffer\n"));
status = NDIS_STATUS_RESOURCES;
goto Cleanup;
}
@ -367,6 +368,7 @@ MiniportInitialize (
if (adapter->RuntTxBuffers == NULL)
{
NDIS_DbgPrint(MIN_TRACE, ("Unable to allocate runt TX buffer\n"));
status = NDIS_STATUS_RESOURCES;
goto Cleanup;
}