[host] reset the update count when the guest flags a restart

This commit is contained in:
Geoffrey McRae committed 2017-12-15 12:08:41 +11:00
1 parent b6c8136565
commit df13340439
1 file changed
+1
+1
View File
@@ -183,6 +183,7 @@ bool Service::Process()
// check if the client has flagged a restart
if (f & KVMFR_HEADER_FLAG_RESTART)
{
m_header->updateCount = 0;
INTERLOCKED_AND8((volatile char *)flags, ~(KVMFR_HEADER_FLAG_RESTART));
restart = true;
break;