diff --git a/reactos/drivers/bus/acpi/ospm/osl.c b/reactos/drivers/bus/acpi/ospm/osl.c index 741f0714c91..ed11cd6d630 100644 --- a/reactos/drivers/bus/acpi/ospm/osl.c +++ b/reactos/drivers/bus/acpi/ospm/osl.c @@ -601,5 +601,5 @@ acpi_os_writable(void *ptr, u32 len) u32 acpi_os_get_thread_id (void) { - return (ULONG)PsGetCurrentThreadId(); + return (ULONG)PsGetCurrentThreadId() + 1; } diff --git a/reactos/drivers/bus/acpi/utils/cmglobal.c b/reactos/drivers/bus/acpi/utils/cmglobal.c index 121bcda9a8f..c2d1237fef5 100644 --- a/reactos/drivers/bus/acpi/utils/cmglobal.c +++ b/reactos/drivers/bus/acpi/utils/cmglobal.c @@ -389,6 +389,7 @@ acpi_cm_init_globals ( acpi_gbl_acpi_mutex_info[i].mutex = NULL; acpi_gbl_acpi_mutex_info[i].locked = FALSE; acpi_gbl_acpi_mutex_info[i].use_count = 0; + acpi_gbl_acpi_mutex_info[i].owner_id = 0; } /* Global notify handlers */