mirror of
https://github.com/ONLYOFFICE/desktop-apps.git
synced 2026-04-07 14:09:22 +08:00
[win] updatesvc: small refactoring
This commit is contained in:
@ -162,11 +162,8 @@ int __cdecl _tmain (int argc, TCHAR *argv[])
|
||||
VOID WINAPI SvcMain(DWORD argc, LPTSTR *argv)
|
||||
{
|
||||
NS_Utils::parseCmdArgs(argc, argv);
|
||||
if (argc > 1) {
|
||||
if (lstrcmpi(argv[1], _T("--log")) == 0) {
|
||||
NS_Logger::AllowWriteLog();
|
||||
}
|
||||
}
|
||||
if (NS_Utils::cmdArgContains(_T("--log")))
|
||||
NS_Logger::AllowWriteLog();
|
||||
|
||||
gSvcStatusHandle = RegisterServiceCtrlHandler(SERVICE_NAME, SvcCtrlHandler);
|
||||
if (gSvcStatusHandle == NULL) {
|
||||
|
||||
Reference in New Issue
Block a user