mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +00:00
Merge:
MiniLocateAdapter never zeroed Adapter if the adapter didn't match, and never actually ever matched a name. It always returned the last adapter in the list. svn path=/trunk/; revision=11790
This commit is contained in:
parent
f8246d2f62
commit
842b2d68dc
1 changed files with 2 additions and 1 deletions
|
@ -489,7 +489,7 @@ MiniLocateDevice(
|
|||
|
||||
ASSERT(Adapter);
|
||||
|
||||
NDIS_DbgPrint(DEBUG_MINIPORT, ("AdapterName = %wZ\n", &AdapterName));
|
||||
NDIS_DbgPrint(DEBUG_MINIPORT, ("AdapterName = %wZ\n", AdapterName));
|
||||
NDIS_DbgPrint(DEBUG_MINIPORT, ("DeviceName = %wZ\n", &Adapter->NdisMiniportBlock.MiniportName));
|
||||
|
||||
if (RtlCompareUnicodeString(AdapterName, &Adapter->NdisMiniportBlock.MiniportName, TRUE) == 0)
|
||||
|
@ -498,6 +498,7 @@ MiniLocateDevice(
|
|||
break;
|
||||
}
|
||||
|
||||
Adapter = NULL;
|
||||
CurrentEntry = CurrentEntry->Flink;
|
||||
}
|
||||
} while (0);
|
||||
|
|
Loading…
Reference in a new issue