mirror of
https://github.com/veracrypt/VeraCrypt
synced 2024-11-10 21:23:40 +01:00
Windows: Don't use RegDeleteKeyEx since it's not supported on Windows XP.
This commit is contained in:
parent
0bd265cbde
commit
a9882a6689
@ -4390,12 +4390,12 @@ BOOL UpdateDriveCustomLabel (int driveNo, wchar_t* effectiveLabel, BOOL bSetValu
|
|||||||
lStatus = RegOpenKeyExW (HKEY_CURRENT_USER, wszRegPath, 0, KEY_READ | KEY_WRITE | KEY_SET_VALUE, &hKey);
|
lStatus = RegOpenKeyExW (HKEY_CURRENT_USER, wszRegPath, 0, KEY_READ | KEY_WRITE | KEY_SET_VALUE, &hKey);
|
||||||
if (ERROR_SUCCESS == lStatus)
|
if (ERROR_SUCCESS == lStatus)
|
||||||
{
|
{
|
||||||
lStatus = RegDeleteKeyExW (hKey, L"DefaultLabel", 0, NULL);
|
lStatus = RegDeleteKeyW (hKey, L"DefaultLabel");
|
||||||
RegCloseKey (hKey);
|
RegCloseKey (hKey);
|
||||||
}
|
}
|
||||||
|
|
||||||
// delete drive letter of nothing else is present under it
|
// delete drive letter of nothing else is present under it
|
||||||
RegDeleteKeyExW (HKEY_CURRENT_USER, wszRegPath, 0, NULL);
|
RegDeleteKeyW (HKEY_CURRENT_USER, wszRegPath);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user