[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Reset "RebootCount" when no reboot requested.


  • To: <win-pv-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Owen Smith <owen.smith@xxxxxxxxxx>
  • Date: Tue, 15 Dec 2020 12:33:06 +0000
  • Authentication-results: esa1.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none
  • Cc: Owen Smith <owen.smith@xxxxxxxxxx>
  • Delivery-date: Tue, 15 Dec 2020 12:58:51 +0000
  • Ironport-sdr: 7H3Y1hLBJ0qRdt/m67vCAUtIqP3FojZ/jE47FX9bjz3vXq+ppDYTuYkPHm86gKWSRQ0cdhqS/u ssMrJ90zWp98BO9DtOmF13MJQmkxYccd1+84C7vWM4h3AnIPxrgbJnrkLD4EtXS0LZVcyz7wzs hFnOtRMKdsC5/bJ588lXij7nesU1LcF5VKzNcyog/6z5hVBMork8KgGo/dhKZEUiqgOyZnJ2lp FEm6L/Z6vydFcA+IQgVxUWYBDqt0UUzSbiMdLEgwAMdBYsYSpFiIhjFWGyf6zBE851ACQ5v+ae d28=
  • List-id: Developer list for the Windows PV Drivers subproject <win-pv-devel.lists.xenproject.org>

Signed-off-by: Owen Smith <owen.smith@xxxxxxxxxx>
---
 src/monitor/monitor.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/monitor/monitor.c b/src/monitor/monitor.c
index 5d58be4..7d8689f 100644
--- a/src/monitor/monitor.c
+++ b/src/monitor/monitor.c
@@ -797,6 +797,11 @@ loop:
         RegCloseKey(SubKey);
     }
 
+    Error = RegDeleteValue(Context->ParametersKey,
+                           "RebootCount");
+    if (Error == ERROR_SUCCESS)
+        (VOID) RegFlushKey(Context->ParametersKey);
+
     goto done;
 
 found:
-- 
2.28.0.windows.1




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.