diff --git a/src/desktop/paths.cpp b/src/desktop/paths.cpp index 5217113ab8a9..7ffec0507d1e 100644 --- a/src/desktop/paths.cpp +++ b/src/desktop/paths.cpp @@ -78,8 +78,9 @@ void enumerate_storage_devices(std::vector& res) wchar_t label[label_bufsize] = { 0 }; if(GetVolumeInformation(drive, label, label_bufsize, NULL, NULL, NULL, NULL, 0) == 0) { + // Probably an empty removable drive, just ignore it and carry on. const DWORD err = GetLastError(); - ERR_DU << "enumerate_win32_drives(): GetVolumeInformation() failed (" << err << ")\n"; + LOG_DU << "enumerate_win32_drives(): GetVolumeInformation() failed (" << err << ")\n"; continue; }