diff options
Diffstat (limited to 'src/zenserver/windows/service.cpp')
| -rw-r--r-- | src/zenserver/windows/service.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/zenserver/windows/service.cpp b/src/zenserver/windows/service.cpp index 21116f1c4..cb87df1f6 100644 --- a/src/zenserver/windows/service.cpp +++ b/src/zenserver/windows/service.cpp @@ -7,7 +7,7 @@ #if ZEN_PLATFORM_WINDOWS # include <zencore/except.h> -# include <zencore/zencore.h> +# include <zencore/thread.h> # include <stdio.h> # include <tchar.h> @@ -151,6 +151,8 @@ CallMain(DWORD, LPSTR*) int WindowsService::ServiceMain() { + zen::SetCurrentThreadName("svc-main"); + gSvc = this; SERVICE_TABLE_ENTRY DispatchTable[] = {{(LPWSTR)SVCNAME, (LPSERVICE_MAIN_FUNCTION)&CallMain}, {NULL, NULL}}; |