mirror of
				https://github.com/gnif/LookingGlass.git
				synced 2025-11-04 06:31:54 +00:00 
			
		
		
		
	[host] platform: Close the exitEvent when done
This commit is contained in:
		@@ -558,10 +558,14 @@ bool app_init(void)
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  if (exitEvent &&
 | 
			
		||||
      !RegisterWaitForSingleObject(&app.exitWait, exitEvent, exitEventCallback, NULL,
 | 
			
		||||
        INFINITE, WT_EXECUTEONLYONCE))
 | 
			
		||||
    DEBUG_WINERROR("Failed to register wait for exit event", GetLastError());
 | 
			
		||||
  if (exitEvent)
 | 
			
		||||
  {
 | 
			
		||||
    if (!RegisterWaitForSingleObject(
 | 
			
		||||
          &app.exitWait, exitEvent, exitEventCallback, NULL,
 | 
			
		||||
          INFINITE, WT_EXECUTEONLYONCE))
 | 
			
		||||
      DEBUG_WINERROR("Failed to register wait for exit event", GetLastError());
 | 
			
		||||
    CloseHandle(exitEvent);
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  return true;
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user