regedit: Don't pass an ANSI string to vsprintfW.
This commit is contained in:
parent
9908100305
commit
f2235ef30d
|
@ -436,14 +436,9 @@ BOOL DeleteValue(HWND hwnd, HKEY hKeyRoot, LPCWSTR keyPath, LPCWSTR valueName, B
|
|||
|
||||
if (showMessageBox)
|
||||
{
|
||||
LPSTR visibleValueNameA = GetMultiByteString(visibleValueName);
|
||||
if (messagebox(hwnd, MB_YESNO | MB_ICONEXCLAMATION, IDS_DELETE_BOX_TITLE, IDS_DELETE_BOX_TEXT, visibleValueNameA) != IDYES)
|
||||
{
|
||||
HeapFree(GetProcessHeap(), 0, visibleValueNameA);
|
||||
if (messagebox(hwnd, MB_YESNO | MB_ICONEXCLAMATION, IDS_DELETE_BOX_TITLE, IDS_DELETE_BOX_TEXT, visibleValueName) != IDYES)
|
||||
goto done;
|
||||
}
|
||||
HeapFree(GetProcessHeap(), 0, visibleValueNameA);
|
||||
}
|
||||
|
||||
lRet = RegDeleteValueW(hKey, valueName ? valueName : &empty);
|
||||
if (lRet != ERROR_SUCCESS && valueName) {
|
||||
|
|
Loading…
Reference in New Issue