Commit d930440a authored by Nick Mathewson's avatar Nick Mathewson 🏃
Browse files

r11648@catbus: nickm | 2007-02-05 16:48:50 -0500

 Fix bugs in last nt services patch: syntax, typename.


svn:r9488
parent 8b238404
...@@ -69,6 +69,7 @@ int has_completed_circuit=0; ...@@ -69,6 +69,7 @@ int has_completed_circuit=0;
#ifdef MS_WINDOWS #ifdef MS_WINDOWS
#define MS_WINDOWS_SERVICE #define MS_WINDOWS_SERVICE
#includ "Windows.h"
#endif #endif
#ifdef MS_WINDOWS_SERVICE #ifdef MS_WINDOWS_SERVICE
...@@ -2156,7 +2157,7 @@ nt_service_install(int argc, char **argv) ...@@ -2156,7 +2157,7 @@ nt_service_install(int argc, char **argv)
char *errmsg; char *errmsg;
const char *user_acct = GENSRV_USERACCT; const char *user_acct = GENSRV_USERACCT;
int i,r; int i,r;
SID_NAMED_USE sidUse; SID_NAME_USE sidUse;
if (nt_service_loadlibrary()<0) if (nt_service_loadlibrary()<0)
return -1; return -1;
...@@ -2170,7 +2171,7 @@ nt_service_install(int argc, char **argv) ...@@ -2170,7 +2171,7 @@ nt_service_install(int argc, char **argv)
service_fns.CloseServiceHandle_fn(hSCManager); service_fns.CloseServiceHandle_fn(hSCManager);
return -1; return -1;
} }
for (i=1; i < argc, ++i) { for (i=1; i < argc; ++i) {
if (!strcmp(i, "--user") && i+1<argc) { if (!strcmp(i, "--user") && i+1<argc) {
user_acct = argv[i+1]; user_acct = argv[i+1];
++i; ++i;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment