mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-25 14:57:20 +00:00
[host] service: fix possible use of unitialized variable
This commit is contained in:
parent
0d7be70b56
commit
e2e49bce13
@ -645,7 +645,7 @@ VOID WINAPI SvcMain(DWORD dwArgc, LPTSTR *lpszArgv)
|
|||||||
ReportSvcStatus(SERVICE_RUNNING, NO_ERROR, 0);
|
ReportSvcStatus(SERVICE_RUNNING, NO_ERROR, 0);
|
||||||
while(1)
|
while(1)
|
||||||
{
|
{
|
||||||
ULONGLONG launchTime;
|
ULONGLONG launchTime = 0ULL;
|
||||||
|
|
||||||
DWORD interactiveSession = WTSGetActiveConsoleSessionId();
|
DWORD interactiveSession = WTSGetActiveConsoleSessionId();
|
||||||
if (interactiveSession != 0 && interactiveSession != 0xFFFFFFFF)
|
if (interactiveSession != 0 && interactiveSession != 0xFFFFFFFF)
|
||||||
|
Loading…
Reference in New Issue
Block a user