mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-12 03:18:26 -06:00
Windows: Fix false positive detection of new device insertion when clear keys option is enable
When this option is enabled, we first build the list of currently inserted devices then we start listening to insertion events. When a device insertion occurs, we check if this device is on our list and if yes, we ignore its insertion. We also ignore devices whose Device ID starts with "SWD\" and "ROOT\" since these are not real devices.
This commit is contained in:
@@ -203,6 +203,11 @@ public:
|
||||
return BaseCom::UpdateSetupConfigFile (bForInstall);
|
||||
}
|
||||
|
||||
virtual DWORD STDMETHODCALLTYPE NotifyService (DWORD dwNotifyCode)
|
||||
{
|
||||
return BaseCom::NotifyService (dwNotifyCode);
|
||||
}
|
||||
|
||||
protected:
|
||||
DWORD MessageThreadId;
|
||||
LONG RefCount;
|
||||
|
||||
Reference in New Issue
Block a user