Commit f2235ef3 authored by Mikołaj Zalewski's avatar Mikołaj Zalewski Committed by Alexandre Julliard

regedit: Don't pass an ANSI string to vsprintfW.

parent 99081003
......@@ -436,13 +436,8 @@ 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);
goto done;
}
HeapFree(GetProcessHeap(), 0, visibleValueNameA);
if (messagebox(hwnd, MB_YESNO | MB_ICONEXCLAMATION, IDS_DELETE_BOX_TITLE, IDS_DELETE_BOX_TEXT, visibleValueName) != IDYES)
goto done;
}
lRet = RegDeleteValueW(hKey, valueName ? valueName : &empty);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment