mirror of
https://github.com/winfsp/winfsp.git
synced 2025-04-22 16:33:02 -05:00
dll: service: FspServiceLoop
Do not reset FspServiceConsoleModeEvent on reentry. It should be noted that reentry is not feasible, because StartServiceCtrlDispatcherW returns ERROR_SERVICE_ALREADY_RUNNING on reentry.
This commit is contained in:
parent
554f07a50e
commit
e5c424dba1
@ -251,7 +251,7 @@ FSP_API NTSTATUS FspServiceLoop(FSP_SERVICE *Service)
|
||||
|
||||
/* ENTER CONSOLE MODE! */
|
||||
|
||||
/* create/reset the console mode event and console control handler */
|
||||
/* create the console mode event and console control handler */
|
||||
if (0 == FspServiceConsoleModeEvent)
|
||||
{
|
||||
FspServiceConsoleModeEvent = CreateEventW(0, TRUE, FALSE, 0);
|
||||
@ -267,12 +267,14 @@ FSP_API NTSTATUS FspServiceLoop(FSP_SERVICE *Service)
|
||||
goto console_mode_exit;
|
||||
}
|
||||
}
|
||||
#if 0
|
||||
else
|
||||
{
|
||||
ResetEvent(FspServiceConsoleModeEvent);
|
||||
FspServiceConsoleCtrlHandlerDisabled = 0;
|
||||
MemoryBarrier();
|
||||
}
|
||||
#endif
|
||||
|
||||
/* prepare the command line arguments */
|
||||
Argv = CommandLineToArgvW(GetCommandLineW(), &Argc);
|
||||
|
Loading…
x
Reference in New Issue
Block a user