Set up ACPI Interrupt data before creating the interrupt, to fix case where interrupt is being called as soon as it's being set up, before the data is set. Patch by tinus. Fixes bug 472
Modified: trunk/reactos/drivers/bus/acpi/ospm/osl.c

Modified: trunk/reactos/drivers/bus/acpi/ospm/osl.c
--- trunk/reactos/drivers/bus/acpi/ospm/osl.c	2005-01-25 05:11:17 UTC (rev 13267)
+++ trunk/reactos/drivers/bus/acpi/ospm/osl.c	2005-01-25 05:38:01 UTC (rev 13268)
@@ -219,6 +219,11 @@
     &DIrql,
     &Affinity);
 
+  AcpiIrqNumber = irq;
+  AcpiIrqHandler = handler;
+  AcpiIrqContext = context;
+  AcpiInterruptHandlerRegistered = TRUE;
+
   Status = IoConnectInterrupt(
     &AcpiInterrupt,
     OslIsrStub,
@@ -236,11 +241,6 @@
     return AE_ERROR;
   }
 
-  AcpiIrqNumber = irq;
-  AcpiIrqHandler = handler;
-  AcpiIrqContext = context;
-  AcpiInterruptHandlerRegistered = TRUE;
-
 	return AE_OK;
 }