X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=win%2Fwin32service.cpp;h=27efd653f8fb9329aa91e617b06c9d682d0daee3;hb=HEAD;hp=d06ad1838d81e9a606814d0670c3f0e94f7ff96c;hpb=362f3009ac9a8fc7e1cedea66aa72abcdf52d934;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/win/win32service.cpp b/win/win32service.cpp index d06ad1838..27efd653f 100644 --- a/win/win32service.cpp +++ b/win/win32service.cpp @@ -1,7 +1,10 @@ /* * InspIRCd -- Internet Relay Chat Daemon * - * Copyright (C) 2008 Craig Edwards + * Copyright (C) 2012-2013 ChrisTX + * Copyright (C) 2012-2013 Attila Molnar + * Copyright (C) 2012 Robby + * Copyright (C) 2008 Craig Edwards * * This file is part of InspIRCd. InspIRCd is free software: you can * redistribute it and/or modify it under the terms of the GNU General Public @@ -17,7 +20,6 @@ */ -#include "config.h" #include "inspircd.h" #include "exitcodes.h" #include @@ -38,7 +40,7 @@ struct Service_Data { static Service_Data g_ServiceData; /** The main part of inspircd runs within this thread function. This allows the service part to run - * seperately on its own and to be able to kill the worker thread when its time to quit. + * separately on its own and to be able to kill the worker thread when its time to quit. */ DWORD WINAPI WorkerThread(LPVOID param) { @@ -117,7 +119,7 @@ VOID ServiceMain(DWORD argc, LPCSTR *argv) g_ServiceData.argc = argc; // Note: since this memory is going to stay allocated for the rest of the execution, - // it doesn't make sense to free it, as it's going to be "freed" on process termination + // it doesn't make sense to free it, as it's going to be "freed" on process termination try { g_ServiceData.argv = new char*[argc]; @@ -280,7 +282,7 @@ int main(int argc, char* argv[]) } else { - return EXIT_STATUS_INTERNAL; + return EXIT_STATUS_SERVICE; } } return 0;