[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [win-pv-devel] [PATCH] Create, rather than open, the RequestKey
It's possible that, on upgrade, XENVBD is installed before XENBUS and so the RequestKey may not exist. Signed-off-by: Paul Durrant <paul.durrant@xxxxxxxxxx> --- src/xenvbd/driver.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/xenvbd/driver.c b/src/xenvbd/driver.c index 5a6d243..235b04f 100644 --- a/src/xenvbd/driver.c +++ b/src/xenvbd/driver.c @@ -148,7 +148,7 @@ __DriverGetFdo( return IsFdo; } -#define MAXNAMELEN 128 +#define MAXNAMELEN 1024 VOID DriverRequestReboot( @@ -176,10 +176,10 @@ 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; -- 2.1.1 _______________________________________________ win-pv-devel mailing list win-pv-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/cgi-bin/mailman/listinfo/win-pv-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |