mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 02:58:02 -06:00
Windows: Remove TrueCrypt support. Increment version to 1.26.4.
This commit is contained in:
@@ -328,10 +328,6 @@ void DetermineUpgradeDowngradeStatus (BOOL bCloseDriverHandle, LONG *driverVersi
|
||||
DWORD dwResult;
|
||||
BOOL bResult = DeviceIoControl (hDriver, TC_IOCTL_GET_DRIVER_VERSION, NULL, 0, &driverVersion, sizeof (driverVersion), &dwResult, NULL);
|
||||
|
||||
if (!bResult)
|
||||
bResult = DeviceIoControl (hDriver, TC_IOCTL_LEGACY_GET_DRIVER_VERSION, NULL, 0, &driverVersion, sizeof (driverVersion), &dwResult, NULL);
|
||||
|
||||
|
||||
bUpgrade = (bResult && driverVersion <= VERSION_NUM);
|
||||
bDowngrade = (bResult && driverVersion > VERSION_NUM);
|
||||
bReinstallMode = (bResult && driverVersion == VERSION_NUM);
|
||||
@@ -1592,13 +1588,6 @@ BOOL DoDriverUnload_Dll (MSIHANDLE hInstaller, HWND hwnd)
|
||||
// Check mounted volumes
|
||||
bResult = DeviceIoControl (hDriver, TC_IOCTL_IS_ANY_VOLUME_MOUNTED, NULL, 0, &volumesMounted, sizeof (volumesMounted), &dwResult, NULL);
|
||||
|
||||
if (!bResult)
|
||||
{
|
||||
bResult = DeviceIoControl (hDriver, TC_IOCTL_LEGACY_GET_MOUNTED_VOLUMES, NULL, 0, &driver, sizeof (driver), &dwResult, NULL);
|
||||
if (bResult)
|
||||
volumesMounted = driver.ulMountedDrives;
|
||||
}
|
||||
|
||||
if (bResult)
|
||||
{
|
||||
if (volumesMounted != 0)
|
||||
|
||||
Reference in New Issue
Block a user