Commit 063a36b6 authored by James Hawkins's avatar James Hawkins Committed by Alexandre Julliard

advpack: Forward RegRestoreAllA to its Unicode counterpart.

parent ef7fce84
......@@ -53,7 +53,7 @@
# stdcall RegInstallW(ptr wstr ptr)
@ stdcall RegInstall(ptr str ptr) RegInstallA
@ stdcall RegRestoreAllA(ptr str long)
# stdcall RegRestoreAllW(ptr wstr long)
@ stdcall RegRestoreAllW(ptr wstr long)
@ stdcall RegRestoreAll(ptr str long) RegRestoreAllA
@ stdcall RegSaveRestoreA(ptr str long str str str long)
# stdcall RegSaveRestoreW(ptr wstr long wstr wstr wstr long)
......
......@@ -191,6 +191,27 @@ HRESULT WINAPI RegInstallA(HMODULE hm, LPCSTR pszSection, const STRTABLEA* pstTa
/***********************************************************************
* RegRestoreAllA (advpack.@)
*
* See RegRestoreAllW.
*/
HRESULT WINAPI RegRestoreAllA(HWND hWnd, LPSTR pszTitleString, HKEY hkBackupKey)
{
UNICODE_STRING title;
HRESULT hr;
TRACE("(%p, %s, %p)\n", hWnd, pszTitleString, hkBackupKey);
RtlCreateUnicodeStringFromAsciiz(&title, pszTitleString);
hr = RegRestoreAllW(hWnd, title.Buffer, hkBackupKey);
RtlFreeUnicodeString(&title);
return hr;
}
/***********************************************************************
* RegRestoreAllW (advpack.@)
*
* Restores all saved registry entries.
*
* PARAMS
......@@ -205,9 +226,9 @@ HRESULT WINAPI RegInstallA(HMODULE hm, LPCSTR pszSection, const STRTABLEA* pstTa
* BUGS
* Unimplemented.
*/
HRESULT WINAPI RegRestoreAllA(HWND hWnd, LPSTR pszTitleString, HKEY hkBackupKey)
HRESULT WINAPI RegRestoreAllW(HWND hWnd, LPWSTR pszTitleString, HKEY hkBackupKey)
{
FIXME("(%p, %p, %p) stub\n", hWnd, pszTitleString, hkBackupKey);
FIXME("(%p, %s, %p) stub\n", hWnd, debugstr_w(pszTitleString), hkBackupKey);
return E_FAIL;
}
......
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