[host] fix crash on screen blanking

This commit is contained in:
Geoffrey McRae
2018-06-01 00:38:15 +10:00
parent 14954cc426
commit 8a9d0b0bfb
3 changed files with 18 additions and 16 deletions

View File

@@ -183,10 +183,8 @@ bool Service::Process()
// wait for the host to notify that is it is ready to proceed
while (true)
{
const uint8_t f = *flags;
// check if the client has flagged a restart
if (f & KVMFR_HEADER_FLAG_RESTART)
if (*flags & KVMFR_HEADER_FLAG_RESTART)
{
DEBUG_INFO("Restart Requested");
if (!m_capture->ReInitialize())