mirror of
https://github.com/tnodir/fort
synced 2024-11-15 09:25:40 +00:00
UI: ServiceManager: Minor refactor
This commit is contained in:
parent
e1fb09db29
commit
cccc1fa1b3
@ -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: {
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user