VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2015-09-07 11:00:27 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2015-09-08 01:08:22 +0200
commita9882a66894cbc98bfda5c264bf4621f7004f909 (patch)
tree1d8cf03e8073e4efe4a5e6be28882942f2bb493e /src
parent0bd265cbde32fde9814d7cabf8e99142ce94bba5 (diff)
downloadVeraCrypt-a9882a66894cbc98bfda5c264bf4621f7004f909.tar.gz
VeraCrypt-a9882a66894cbc98bfda5c264bf4621f7004f909.zip
Windows: Don't use RegDeleteKeyEx since it's not supported on Windows XP.
Diffstat (limited to 'src')
-rw-r--r--src/Common/Dlgcode.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Common/Dlgcode.c b/src/Common/Dlgcode.c
index 02b67c5f..655d64d6 100644
--- a/src/Common/Dlgcode.c
+++ b/src/Common/Dlgcode.c
@@ -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);
if (ERROR_SUCCESS == lStatus)
{
- lStatus = RegDeleteKeyExW (hKey, L"DefaultLabel", 0, NULL);
+ lStatus = RegDeleteKeyW (hKey, L"DefaultLabel");
RegCloseKey (hKey);
}
// delete drive letter of nothing else is present under it
- RegDeleteKeyExW (HKEY_CURRENT_USER, wszRegPath, 0, NULL);
+ RegDeleteKeyW (HKEY_CURRENT_USER, wszRegPath);
}