[core] don't analyse boot records of deleted partition

* Also revert a472e96e87 as this is creating
  unwanted detection issues as per #1239. We'll try to devise a better way
  to avoid intempestive refreshes later on.
This commit is contained in:
Pete Batard 2018-11-28 11:12:54 +00:00
parent c0526b3e8b
commit 4cd308a1c0
No known key found for this signature in database
GPG key ID: 38E0CF5E69EDD671
3 changed files with 6 additions and 15 deletions

View file

@ -320,12 +320,6 @@ 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