Preliminary support for MSYS/MinGW builds. Doesn't yet build

CSynergyHook as a DLL and does not compile or link in the
resources for the binaries.
This commit is contained in:
crs
2004-04-11 19:15:09 +00:00
parent 530be3ff9d
commit bf2879724f
20 changed files with 386 additions and 373 deletions

View File

@@ -277,7 +277,7 @@ CArchDaemonWindows::daemonize(const char* name, DaemonFunc func)
FreeLibrary(kernel);
throw XArchDaemonFailed(new XArchEvalWindows(err));
}
if (RegisterServiceProcess(NULL, 1) == 0) {
if (RegisterServiceProcess(0, 1) == 0) {
// RegisterServiceProcess failed
DWORD err = GetLastError();
FreeLibrary(kernel);
@@ -590,7 +590,7 @@ CArchDaemonWindows::serviceMain(DWORD argc, LPTSTR* argvIn)
// register our service handler function
m_statusHandle = RegisterServiceCtrlHandler(argv[0],
&CArchDaemonWindows::serviceHandlerEntry);
if (m_statusHandle == NULL) {
if (m_statusHandle == 0) {
// cannot start as service
m_daemonResult = -1;
ARCH->closeCondVar(m_serviceCondVar);