mirror of
https://github.com/pbatard/rufus.git
synced 2025-06-01 07:18:29 -04:00
[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:
parent
b1c5545205
commit
3fe6894f8b
3 changed files with 6 additions and 7 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue