1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-03 14:53:12 +02:00

win32 service bugfix

This commit is contained in:
Bram Matthys
2006-04-29 19:41:18 +00:00
parent abfdc9050d
commit e679a6760b
+8 -7
View File
@@ -70,15 +70,16 @@ int main(int argc, char *argv[]) {
SERVICE_AUTO_START, SERVICE_ERROR_NORMAL, binpath,
NULL, NULL, NULL, NULL, NULL);
if (hService)
{
printf("UnrealIRCd NT Service successfully installed");
else
if (VerInfo.dwMajorVersion >= 5) {
SERVICE_DESCRIPTION info;
info.lpDescription = "Internet Relay Chat Server. Allows users to chat with eachother via an IRC client.";
uChangeServiceConfig2(hService, SERVICE_CONFIG_DESCRIPTION, &info);
}
CloseServiceHandle(hService);
} else
printf("Failed to install UnrealIRCd NT Service - %s", show_error(GetLastError()));
if (VerInfo.dwMajorVersion == 5) {
SERVICE_DESCRIPTION info;
info.lpDescription = "Internet Relay Chat Server. Allows users to chat with eachother via an IRC client.";
uChangeServiceConfig2(hService, SERVICE_CONFIG_DESCRIPTION, &info);
}
CloseServiceHandle(hService);
CloseServiceHandle(hSCManager);
return 0;
}