mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 08:06:46 +00:00
StartServiceCtrlDispatcher must be called during main, and does return only at service stop.
svn path=/trunk/; revision=22606
This commit is contained in:
parent
beca141ae2
commit
2a008d3e8b
1 changed files with 13 additions and 1 deletions
|
@ -126,6 +126,18 @@ int check_arp( struct interface_info *ip, struct client_lease *lp ) {
|
|||
return 1;
|
||||
}
|
||||
|
||||
static VOID CALLBACK
|
||||
DispatchMain(DWORD argc, LPTSTR *argv)
|
||||
{
|
||||
dispatch();
|
||||
}
|
||||
|
||||
static SERVICE_TABLE_ENTRY ServiceTable[2] =
|
||||
{
|
||||
{TEXT("DHCP"), DispatchMain},
|
||||
{NULL, NULL}
|
||||
};
|
||||
|
||||
int
|
||||
main(int argc, char *argv[])
|
||||
{
|
||||
|
@ -177,7 +189,7 @@ main(int argc, char *argv[])
|
|||
|
||||
DH_DbgPrint(MID_TRACE,("Going into dispatch()\n"));
|
||||
|
||||
dispatch();
|
||||
StartServiceCtrlDispatcher(ServiceTable);
|
||||
|
||||
/* not reached */
|
||||
return (0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue