[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, XENVIF is installed before XENBUS and so the RequestKey may not exist. Signed-off-by: Paul Durrant <paul.durrant@xxxxxxxxxx> --- src/xenvif/driver.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/xenvif/driver.c b/src/xenvif/driver.c index db17f2e..ded7138 100644 --- a/src/xenvif/driver.c +++ b/src/xenvif/driver.c @@ -142,7 +142,7 @@ DriverGetAddressesKey( return __DriverGetAddressesKey(); } -#define MAXNAMELEN 128 +#define MAXNAMELEN 1024 static FORCEINLINE VOID __DriverRequestReboot( @@ -172,10 +172,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 |