mirror of
https://github.com/reactos/reactos.git
synced 2024-09-15 07:05:04 +00:00
- Make sure we set a failure status when we fail so we don't complete with NDIS_STATUS_SUCCESS when we really failed
svn path=/branches/aicom-network-fixes/; revision=36071
This commit is contained in:
parent
8ea40ee79e
commit
128aeae543
|
@ -301,7 +301,10 @@ NdisOpenFile(
|
|||
memmove ( FullFileName.Buffer, NDIS_FILE_FOLDER, FullFileName.Length );
|
||||
*Status = RtlAppendUnicodeStringToString ( &FullFileName, FileName );
|
||||
if ( !NT_SUCCESS(*Status) )
|
||||
{
|
||||
*Status = NDIS_STATUS_FAILURE;
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
InitializeObjectAttributes ( &ObjectAttributes,
|
||||
&FullFileName,
|
||||
|
@ -322,6 +325,11 @@ NdisOpenFile(
|
|||
0, // PVOID EaBuffer
|
||||
0 ); // ULONG EaLength
|
||||
|
||||
if ( !NT_SUCCESS(*Status) )
|
||||
{
|
||||
*Status = NDIS_STATUS_FAILURE;
|
||||
}
|
||||
|
||||
cleanup:
|
||||
if ( FullFileName.Buffer != NULL )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue