myserver-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[myserver-commit] [SCM] GNU MyServer branch, master, updated. 43c54268b6


From: Giuseppe Scrivano
Subject: [myserver-commit] [SCM] GNU MyServer branch, master, updated. 43c54268b6894190bafaf46656e633a9cf994c4d
Date: Sat, 01 Aug 2009 10:28:15 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU MyServer".

The branch, master has been updated
       via  43c54268b6894190bafaf46656e633a9cf994c4d (commit)
      from  2843fd3284f881233055fc58e66ed524c1061e5a (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------


commit 43c54268b6894190bafaf46656e633a9cf994c4d
Author: Giuseppe Scrivano <address@hidden>
Date:   Sat Aug 1 12:27:53 2009 +0200

    Fix a problem when executed as NT service.

diff --git a/myserver/src/myserver.cpp b/myserver/src/myserver.cpp
index c0e7a2d..3b47053 100644
--- a/myserver/src/myserver.cpp
+++ b/myserver/src/myserver.cpp
@@ -822,7 +822,7 @@ void registerService()
   char path [MAX_PATH];
   GetCurrentDirectory(MAX_PATH,path);
   strcat(path,"\\");
-  strcat(path,"myserver.exe SERVICE");
+  strcat(path,"myserver.exe");
 
   manager = OpenSCManager(NULL,NULL,SC_MANAGER_ALL_ACCESS);
   if (manager)
@@ -877,7 +877,7 @@ void RunAsService()
   manager = OpenSCManager(NULL,NULL,SC_MANAGER_ALL_ACCESS);
   if (manager)
     {
-      service = OpenService (manager, "MyServer", SERVICE_ALL_ACCESS);
+      service = OpenService (manager, "GNU MyServer", SERVICE_ALL_ACCESS);
       if (service)
         {
           StartService(service,0,NULL);

-----------------------------------------------------------------------

Summary of changes:
 myserver/src/myserver.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


hooks/post-receive
-- 
GNU MyServer




reply via email to

[Prev in Thread] Current Thread [Next in Thread]