From 169c1e5008c1390f3eef831d98685820024362d2 Mon Sep 17 00:00:00 2001 From: crs Date: Mon, 1 Nov 2004 18:26:29 +0000 Subject: [PATCH] Fixed synergy quiting when powerdvd stops playing a DVD. This may fix some other bugs that involve unexpectedly quiting. The problem was that synergy would (cleanly) quit when receiving an event with a message id of 0 when not running as a service. --- lib/platform/CMSWindowsEventQueueBuffer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/platform/CMSWindowsEventQueueBuffer.cpp b/lib/platform/CMSWindowsEventQueueBuffer.cpp index 69dee930..5bab2855 100644 --- a/lib/platform/CMSWindowsEventQueueBuffer.cpp +++ b/lib/platform/CMSWindowsEventQueueBuffer.cpp @@ -97,7 +97,7 @@ CMSWindowsEventQueueBuffer::getEvent(CEvent& event, UInt32& dataID) event = CEvent(CEvent::kQuit); return kSystem; } - else if (m_event.message == m_daemonQuit) { + else if (m_daemonQuit != 0 && m_event.message == m_daemonQuit) { event = CEvent(CEvent::kQuit); return kSystem; }