From 25aa23067133fa80df009c2245742b3b7749c2e5 Mon Sep 17 00:00:00 2001 From: ChrisTX Date: Sat, 23 Mar 2013 23:52:51 +0100 Subject: Win32: Rewrite the service wrapper Edited original commit to pass MAX_PATH as nSize to GetModuleFileNameA() instead of 101 after approval from author @ChrisTX (Attila Molnar) Fixes #404 reported by @crchauffe --- win/win32service.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'win/win32service.h') diff --git a/win/win32service.h b/win/win32service.h index b33a53c28..e4500be13 100644 --- a/win/win32service.h +++ b/win/win32service.h @@ -15,12 +15,11 @@ * along with this program. If not, see . */ - -#ifndef WIN32SERVICE_H -#define WIN32SERVICE_H +#pragma once +#ifdef _WIN32 /* Hook for win32service.cpp to exit properly with the service specific error code */ -void SetServiceStopped(int status); +void SetServiceStopped(unsigned long dwStatus); /* Marks the service as running, not called until the config is parsed */ void SetServiceRunning(); -- cgit v1.2.3