- Uncomment the NdisUnmapFile call in NdisCloseFile

- Found by Dmitry Chapyshev

svn path=/trunk/; revision=40161
This commit is contained in:
Cameron Gutman 2009-03-21 13:01:12 +00:00
parent 58949e1e63
commit f4aa76fc47

View file

@ -116,6 +116,19 @@ NdisMapFile(
*Status = STATUS_SUCCESS; *Status = STATUS_SUCCESS;
} }
/*
* @implemented
*/
VOID
EXPORT
NdisUnmapFile(
IN NDIS_HANDLE FileHandle)
{
PNDIS_HANDLE_OBJECT HandleObject = (PNDIS_HANDLE_OBJECT) FileHandle;
HandleObject->Mapped = FALSE;
}
/* /*
* @implemented * @implemented
*/ */
@ -134,10 +147,8 @@ NdisCloseFile(
ASSERT ( FileHandleObject->FileHandle ); ASSERT ( FileHandleObject->FileHandle );
/*
if ( FileHandleObject->Mapped ) if ( FileHandleObject->Mapped )
NdisUnmapFile ( FileHandle ); NdisUnmapFile ( FileHandle );
*/
ZwClose ( FileHandleObject->FileHandle ); ZwClose ( FileHandleObject->FileHandle );
@ -253,20 +264,6 @@ NdisSystemProcessorCount(
} }
/*
* @implemented
*/
VOID
EXPORT
NdisUnmapFile(
IN NDIS_HANDLE FileHandle)
{
PNDIS_HANDLE_OBJECT HandleObject = (PNDIS_HANDLE_OBJECT) FileHandle;
HandleObject->Mapped = FALSE;
}
/* /*
* @implemented * @implemented
*/ */