UI: ServiceManager: Minor refactor

This commit is contained in:
Nodir Temirkhodjaev 2023-10-19 14:18:15 +03:00
parent e1fb09db29
commit cccc1fa1b3
2 changed files with 2 additions and 2 deletions

View File

@ -81,7 +81,7 @@ const wchar_t *ServiceManager::serviceName() const
void ServiceManager::processControl(quint32 code, quint32 eventType)
{
DWORD state = SERVICE_RUNNING;
DWORD state = 0;
switch (code) {
case SERVICE_CONTROL_PAUSE: {

View File

@ -67,7 +67,7 @@ void ServiceManagerIface::reportStatus(quint32 code)
g_service.status.dwCurrentState = code;
}
if (g_service.hstatus != nullptr) {
if (g_service.hstatus) {
SetServiceStatus(g_service.hstatus, &g_service.status);
}
}