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

This commit is contained in:
Mikołaj Zalewski 2009-01-20 22:45:41 +01:00 committed by Alexandre Julliard
parent 9908100305
commit f2235ef30d
1 changed files with 2 additions and 7 deletions

View File

@ -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);