[misc] increase SetLGP thread wait delay

* Someone running Rufus in a VirtualBox environment, where their CPU
  was also seeing 100% usage, reported getting the following message:
  "SetLGP: Killing stuck thread!"
This commit is contained in:
Pete Batard 2016-03-17 21:56:36 +00:00
parent b1c5545205
commit 3fe6894f8b
3 changed files with 6 additions and 7 deletions

View file

@ -803,7 +803,7 @@ BOOL SetLGP(BOOL bRestore, BOOL* bExistingKey, const char* szPath, const char* s
uprintf("SetLGP: Unable to start thread");
return FALSE;
}
if (WaitForSingleObject(thread_id, 2500) != WAIT_OBJECT_0) {
if (WaitForSingleObject(thread_id, 5000) != WAIT_OBJECT_0) {
uprintf("SetLGP: Killing stuck thread!");
TerminateThread(thread_id, 0);
CloseHandle(thread_id);