From 4c1484082ff86edbc923f4222065e56d9b0299d2 Mon Sep 17 00:00:00 2001 From: Paul Durrant Date: Mon, 8 May 2017 16:58:43 +0100 Subject: [PATCH] Reboot request keys should be volatile When a driver makes a reboot request it should use a volatile registry key. The monitor service will explicitly remove the key prior to reboot but, if the reboot is initiated in some other way and the key is non-volatile, the monitor service will then needlessly prompt for a second reboot. Signed-off-by: Paul Durrant --- src/xenbus/driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xenbus/driver.c b/src/xenbus/driver.c index e9cb6f4..bbbda6c 100644 --- a/src/xenbus/driver.c +++ b/src/xenbus/driver.c @@ -161,7 +161,7 @@ __DriverRequestReboot( status = RegistryCreateSubKey(RequestKey, __MODULE__, - REG_OPTION_NON_VOLATILE, + REG_OPTION_VOLATILE, &SubKey); if (!NT_SUCCESS(status)) goto fail3; -- 2.39.5