mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 06:11:34 +00:00
regedit: Don't pass an ANSI string to vsprintfW.
This commit is contained in:
parent
9908100305
commit
f2235ef30d
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue