mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-26 19:33:31 +00:00
[ARBITERS][NDIS] Try to fix the repository
This commit is contained in:
@@ -25,22 +25,22 @@ NdisQueryPciBusInterface(
|
||||
IO_STATUS_BLOCK IoStatusBlock;
|
||||
PIO_STACK_LOCATION IrpStack;
|
||||
|
||||
if (Adapter->BusInterfaceQueried)
|
||||
return (Adapter->BusInterface.GetBusData != NULL) ? STATUS_SUCCESS : STATUS_NOT_SUPPORTED;
|
||||
if (Adapter->BusInterfaceQueried)
|
||||
return (Adapter->BusInterface.GetBusData != NULL) ? STATUS_SUCCESS : STATUS_NOT_SUPPORTED;
|
||||
|
||||
Adapter->BusInterfaceQueried = TRUE;
|
||||
|
||||
KeInitializeEvent(&Event, NotificationEvent, FALSE);
|
||||
|
||||
Irp = IoBuildSynchronousFsdRequest(IRP_MJ_PNP,
|
||||
Adapter->NdisMiniportBlock.NextDeviceObject,
|
||||
NULL,
|
||||
0,
|
||||
NULL,
|
||||
&Event,
|
||||
&IoStatusBlock);
|
||||
if (Irp == NULL)
|
||||
return STATUS_INSUFFICIENT_RESOURCES;
|
||||
Irp = IoBuildSynchronousFsdRequest(IRP_MJ_PNP,
|
||||
Adapter->NdisMiniportBlock.NextDeviceObject,
|
||||
NULL,
|
||||
0,
|
||||
NULL,
|
||||
&Event,
|
||||
&IoStatusBlock);
|
||||
if (Irp == NULL)
|
||||
return STATUS_INSUFFICIENT_RESOURCES;
|
||||
|
||||
IrpStack = IoGetNextIrpStackLocation(Irp);
|
||||
IrpStack->MajorFunction = IRP_MJ_PNP;
|
||||
@@ -54,14 +54,14 @@ NdisQueryPciBusInterface(
|
||||
Irp->IoStatus.Status = STATUS_NOT_SUPPORTED;
|
||||
|
||||
Status = IoCallDriver(Adapter->NdisMiniportBlock.NextDeviceObject, Irp);
|
||||
if (Status == STATUS_PENDING)
|
||||
{
|
||||
KeWaitForSingleObject(&Event, Executive, KernelMode, FALSE, NULL);
|
||||
Status = IoStatusBlock.Status;
|
||||
if (Status == STATUS_PENDING)
|
||||
{
|
||||
KeWaitForSingleObject(&Event, Executive, KernelMode, FALSE, NULL);
|
||||
Status = IoStatusBlock.Status;
|
||||
}
|
||||
|
||||
if (!NT_SUCCESS(Status))
|
||||
RtlZeroMemory(&Adapter->BusInterface, sizeof(Adapter->BusInterface));
|
||||
RtlZeroMemory(&Adapter->BusInterface, sizeof(Adapter->BusInterface));
|
||||
|
||||
return Status;
|
||||
}
|
||||
@@ -239,8 +239,8 @@ NdisReadPciSlotInformation(
|
||||
PLOGICAL_ADAPTER Adapter = NdisAdapterHandle;
|
||||
|
||||
/* Slot number is ignored since W2K for all NDIS drivers. */
|
||||
if (Adapter->BusInterface.GetBusData != NULL)
|
||||
{
|
||||
if (Adapter->BusInterface.GetBusData != NULL)
|
||||
{
|
||||
ULONG Result;
|
||||
Result = Adapter->BusInterface.GetBusData(Adapter->BusInterface.Context,
|
||||
PCI_WHICHSPACE_CONFIG,
|
||||
@@ -272,8 +272,8 @@ NdisWritePciSlotInformation(
|
||||
PLOGICAL_ADAPTER Adapter = NdisAdapterHandle;
|
||||
|
||||
/* Slot number is ignored since W2K for all NDIS drivers. */
|
||||
if (Adapter->BusInterface.SetBusData != NULL)
|
||||
{
|
||||
if (Adapter->BusInterface.SetBusData != NULL)
|
||||
{
|
||||
ULONG Result;
|
||||
Result = Adapter->BusInterface.SetBusData(Adapter->BusInterface.Context,
|
||||
PCI_WHICHSPACE_CONFIG,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* PROJECT: ReactOS Arbitrartion Library
|
||||
* LICENSE: MIT (https://spdx.org/licenses/MIT)
|
||||
* LICENSE: MIT (https://spdx.org/licenses/MIT)
|
||||
* PURPOSE: Generic Arbiter Library
|
||||
* COPYRIGHT: Copyright 2026 Justin Miller <[email protected]>
|
||||
*/
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* PROJECT: ReactOS Arbitrartion Library
|
||||
* LICENSE: MIT (https://spdx.org/licenses/MIT)
|
||||
* LICENSE: MIT (https://spdx.org/licenses/MIT)
|
||||
* PURPOSE: Generic Arbiter Library
|
||||
* COPYRIGHT: Copyright 2026 Justin Miller <[email protected]>
|
||||
*/
|
||||
@@ -160,7 +160,7 @@ typedef NTSTATUS
|
||||
_In_opt_ PIO_RESOURCE_DESCRIPTOR Requirement,
|
||||
_In_opt_ PCM_PARTIAL_RESOURCE_DESCRIPTOR Resource
|
||||
);
|
||||
#endif // (NTDDI_VERSION >= NTDDI_VISTA)
|
||||
#endif // (NTDDI_VERSION >= NTDDI_VISTA)
|
||||
|
||||
typedef NTSTATUS
|
||||
(NTAPI * PARB_COMMIT_ALLOCATION)(
|
||||
|
||||
Reference in New Issue
Block a user