[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] r9496: stop crashing on nt service install; but matt says still not (tor/trunk/src/or)
- To: or-cvs@xxxxxxxxxxxxx
- Subject: [or-cvs] r9496: stop crashing on nt service install; but matt says still not (tor/trunk/src/or)
- From: arma@xxxxxxxx
- Date: Mon, 5 Feb 2007 23:58:57 -0500 (EST)
- Delivered-to: archiver@seul.org
- Delivered-to: or-cvs-outgoing@seul.org
- Delivered-to: or-cvs@seul.org
- Delivery-date: Mon, 05 Feb 2007 23:59:07 -0500
- Reply-to: or-talk@xxxxxxxxxxxxx
- Sender: owner-or-cvs@xxxxxxxxxxxxx
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)