mirror of
https://github.com/pbatard/rufus.git
synced 2025-05-22 02:45:11 -04:00
[misc] prevent unwanted device refreshes
This commit is contained in:
parent
3459d89f09
commit
a472e96e87
2 changed files with 11 additions and 5 deletions
|
@ -321,6 +321,12 @@ BOOL GetOpticalMedia(IMG_SAVE* img_save)
|
|||
*/
|
||||
BOOL GetDevices(DWORD devnum)
|
||||
{
|
||||
// Make sure at least one second has elapsed since we last displayed devices
|
||||
static ULONGLONG LastRefresh = 0;
|
||||
if (GetTickCount64() < LastRefresh + 1000)
|
||||
return FALSE;
|
||||
LastRefresh = GetTickCount64();
|
||||
|
||||
// List of USB storage drivers we know - list may be incomplete!
|
||||
const char* usbstor_name[] = {
|
||||
// Standard MS USB storage driver
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue