]> xenbits.xensource.com Git - people/pauldu/xenbus.git/commitdiff
Add missing patch
authorPaul Durrant <paul.durrant@citrix.com>
Mon, 22 Aug 2016 07:40:58 +0000 (08:40 +0100)
committerPaul Durrant <paul.durrant@citrix.com>
Mon, 22 Aug 2016 07:40:58 +0000 (08:40 +0100)
I missed a 'git add' for the latest code in registry.c resulting in the
code here being slightly behind that in XENVIF and XENVBD. This patch
brings it into line.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
src/common/registry.c

index 24672908788ce35847b61af782cec348568eeb5f..233569fddd8affc3ad350301a6022c04b34155d6 100644 (file)
@@ -150,14 +150,14 @@ fail1:
 
 NTSTATUS
 RegistryCreateKey(
-    IN  HANDLE          Root,
+    IN  HANDLE          Parent,
     IN  PUNICODE_STRING Path,
     IN  ULONG           Options,
     OUT PHANDLE         Key
     )
 {
     PWCHAR              Buffer;
-    HANDLE              Parent;
+    HANDLE              Root;
     PWCHAR              ChildPath;
     PWCHAR              ChildName;
     PWCHAR              Context;
@@ -177,8 +177,9 @@ RegistryCreateKey(
 
     RtlCopyMemory(Buffer, Path->Buffer, Path->Length);
 
-    if (Root != NULL) {
-        Parent = Root;
+    Root = Parent;
+
+    if (Parent != NULL) {
         ChildPath = Buffer;
     } else {
         status = RegistryOpenRoot(Buffer, &Parent, &ChildPath);