Kill compiler warning.
Modified: trunk/reactos/lib/dbghelp/regex.c
_____
Modified: trunk/reactos/lib/dbghelp/regex.c
--- trunk/reactos/lib/dbghelp/regex.c 2005-01-25 14:22:50 UTC (rev
13270)
+++ trunk/reactos/lib/dbghelp/regex.c 2005-01-25 16:26:01 UTC (rev
13271)
@@ -121,7 +121,7 @@
even if config.h says that we can. */
# undef REL_ALLOC
-# if defined STDC_HEADERS || defined _LIBC
+# if defined STDC_HEADERS || defined _LIBC || defined _WIN32
# include <stdlib.h>
# else
char *malloc ();
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;
}