mirror of
https://github.com/gnif/LookingGlass.git
synced 2024-11-25 06:47:19 +00:00
[host] no need to create a thread when running directly
This commit is contained in:
parent
8c719ff01a
commit
b03254b7c2
@ -43,8 +43,8 @@ int main(int argc, TCHAR *argv[])
|
||||
DWORD lastError = GetLastError();
|
||||
if (lastError == ERROR_FAILED_SERVICE_CONTROLLER_CONNECT)
|
||||
{
|
||||
HANDLE hThread = CreateThread(NULL, 0, ServiceWorkerThread, NULL, 0, NULL);
|
||||
WaitForSingleObject(hThread, INFINITE);
|
||||
ServiceWorkerThread(INVALID_HANDLE_VALUE);
|
||||
getc(stdin);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user