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 <paul.durrant@citrix.com>
status = RegistryCreateSubKey(RequestKey,
__MODULE__,
- REG_OPTION_NON_VOLATILE,
+ REG_OPTION_VOLATILE,
&SubKey);
if (!NT_SUCCESS(status))
goto fail3;