It's possible that, on upgrade, XENVIF is installed before XENBUS and so
the RequestKey may not exist.
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
return __DriverGetAddressesKey();
}
-#define MAXNAMELEN 128
+#define MAXNAMELEN 1024
static FORCEINLINE VOID
__DriverRequestReboot(
&Ansi[0]);
ASSERT(NT_SUCCESS(status));
- status = RegistryOpenSubKey(NULL,
- RequestKeyName,
- KEY_ALL_ACCESS,
- &RequestKey);
+ status = RegistryCreateSubKey(NULL,
+ RequestKeyName,
+ REG_OPTION_NON_VOLATILE,
+ &RequestKey);
if (!NT_SUCCESS(status))
goto fail2;