[or-cvs] r9496: stop crashing on nt service install; but matt says still not (tor/trunk/src/or)
arma at seul.org
arma at seul.org
Tue Feb 6 04:58:57 UTC 2007
Author: arma
Date: 2007-02-05 23:58:56 -0500 (Mon, 05 Feb 2007)
New Revision: 9496
Modified:
tor/trunk/src/or/main.c
Log:
stop crashing on nt service install; but matt says still not right
Modified: tor/trunk/src/or/main.c
===================================================================
--- tor/trunk/src/or/main.c 2007-02-06 02:49:07 UTC (rev 9495)
+++ tor/trunk/src/or/main.c 2007-02-06 04:58:56 UTC (rev 9496)
@@ -2157,6 +2157,7 @@
const char *user_acct = GENSRV_USERACCT;
int i;
SID_NAME_USE sidUse;
+ DWORD zero = 0;
if (nt_service_loadlibrary()<0)
return -1;
@@ -2179,8 +2180,10 @@
if (service_fns.LookupAccountNameA_fn(NULL, // On this system
user_acct,
- NULL, 0, // Don't care about the SID
- NULL, 0, // Don't care about the domain
+ NULL,
+ &zero, // Don't care about the SID
+ NULL,
+ &zero, // Don't care about the domain
&sidUse) == 0) {
printf("User \"%s\" doesn't seem to exist.\n", user_acct);
if (user_acct != GENSRV_USERACCT)
More information about the tor-commits
mailing list