[host] service: fix possible use of unitialized variable

This commit is contained in:
Geoffrey McRae 2021-01-27 01:23:58 +11:00
parent 0d7be70b56
commit e2e49bce13

View file

@ -645,7 +645,7 @@ VOID WINAPI SvcMain(DWORD dwArgc, LPTSTR *lpszArgv)
ReportSvcStatus(SERVICE_RUNNING, NO_ERROR, 0);
while(1)
{
ULONGLONG launchTime;
ULONGLONG launchTime = 0ULL;
DWORD interactiveSession = WTSGetActiveConsoleSessionId();
if (interactiveSession != 0 && interactiveSession != 0xFFFFFFFF)