[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH] Reset "RebootCount" when no reboot requested.
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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |