From 22457c78fe7cefbe71f79cc270c4bbb8dfcc3a4c Mon Sep 17 00:00:00 2001 From: crs Date: Wed, 25 Dec 2002 22:56:09 +0000 Subject: [PATCH] Made synrgyhk.dll error messages less cryptic. --- lib/server/CMSWindowsPrimaryScreen.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/server/CMSWindowsPrimaryScreen.cpp b/lib/server/CMSWindowsPrimaryScreen.cpp index 6a28a092..3e43ca51 100644 --- a/lib/server/CMSWindowsPrimaryScreen.cpp +++ b/lib/server/CMSWindowsPrimaryScreen.cpp @@ -40,7 +40,7 @@ CMSWindowsPrimaryScreen::CMSWindowsPrimaryScreen( // load the hook library m_hookLibrary = LoadLibrary("synrgyhk"); if (m_hookLibrary == NULL) { - LOG((CLOG_ERR "failed to load hook library")); + LOG((CLOG_ERR "Failed to load hook library; synrgyhk.dll is missing")); throw XScreenOpenFailure(); } m_setSides = (SetSidesFunc)GetProcAddress(m_hookLibrary, "setSides"); @@ -57,7 +57,7 @@ CMSWindowsPrimaryScreen::CMSWindowsPrimaryScreen( m_uninstall == NULL || m_init == NULL || m_cleanup == NULL) { - LOG((CLOG_ERR "invalid hook library")); + LOG((CLOG_ERR "Invalid hook library; use a newer synrgyhk.dll")); FreeLibrary(m_hookLibrary); throw XScreenOpenFailure(); } @@ -425,7 +425,7 @@ CMSWindowsPrimaryScreen::onPreOpen() // initialize hook library m_threadID = GetCurrentThreadId(); if (m_init(m_threadID) == 0) { - LOG((CLOG_ERR "cannot initialize hook library")); + LOG((CLOG_ERR "Cannot initialize hook library; is synergy already running?")); throw XScreenOpenFailure(); } }