Commit 844eebd0 authored by James Hawkins's avatar James Hawkins Committed by Alexandre Julliard

advpack: Forward RegSaveRestoreOnINFA to its Unicode counterpart.

parent 96a42806
......@@ -59,7 +59,7 @@
@ stdcall RegSaveRestoreW(ptr wstr long wstr wstr wstr long)
@ stdcall RegSaveRestore(ptr str long str str str long) RegSaveRestoreA
@ stdcall RegSaveRestoreOnINFA(ptr str str str long long long)
# stdcall RegSaveRestoreOnINFW(ptr wstr wstr wstr long long long)
@ stdcall RegSaveRestoreOnINFW(ptr wstr wstr wstr long long long)
@ stdcall RegSaveRestoreOnINF(ptr str str str long long long) RegSaveRestoreOnINFA
@ stdcall RegisterOCX(ptr ptr str long)
@ stdcall RunSetupCommandA(long str str str str ptr long ptr)
......
......@@ -298,6 +298,35 @@ HRESULT WINAPI RegSaveRestoreW(HWND hWnd, LPCWSTR pszTitleString, HKEY hkBackupK
/***********************************************************************
* RegSaveRestoreOnINFA (advpack.@)
*
* See RegSaveRestoreOnINFW.
*/
HRESULT WINAPI RegSaveRestoreOnINFA(HWND hWnd, LPCSTR pszTitle, LPCSTR pszINF,
LPCSTR pszSection, HKEY hHKLMBackKey,
HKEY hHKCUBackKey, DWORD dwFlags)
{
UNICODE_STRING title, inf, section;
HRESULT hr;
TRACE("(%p, %p, %p, %p, %p, %p, %ld)\n", hWnd, pszTitle, pszINF,
pszSection, hHKLMBackKey, hHKCUBackKey, dwFlags);
RtlCreateUnicodeStringFromAsciiz(&title, pszTitle);
RtlCreateUnicodeStringFromAsciiz(&inf, pszINF);
RtlCreateUnicodeStringFromAsciiz(&section, pszSection);
hr = RegSaveRestoreOnINFW(hWnd, title.Buffer, inf.Buffer, section.Buffer,
hHKLMBackKey, hHKCUBackKey, dwFlags);
RtlFreeUnicodeString(&title);
RtlFreeUnicodeString(&inf);
RtlFreeUnicodeString(&section);
return hr;
}
/***********************************************************************
* RegSaveRestoreOnINFW (advpack.@)
*
* Saves or restores the specified INF Reg section.
*
* PARAMS
......@@ -316,9 +345,9 @@ HRESULT WINAPI RegSaveRestoreW(HWND hWnd, LPCWSTR pszTitleString, HKEY hkBackupK
* BUGS
* Unimplemented.
*/
HRESULT WINAPI RegSaveRestoreOnINFA(HWND hWnd, LPCSTR pszTitle, LPCSTR pszINF,
LPCSTR pszSection, HKEY hHKLMBackKey,
HKEY hHKCUBackKey, DWORD dwFlags)
HRESULT WINAPI RegSaveRestoreOnINFW(HWND hWnd, LPCWSTR pszTitle, LPCWSTR pszINF,
LPCWSTR pszSection, HKEY hHKLMBackKey,
HKEY hHKCUBackKey, DWORD dwFlags)
{
FIXME("(%p, %p, %p, %p, %p, %p, %ld) stub\n", hWnd, pszTitle, pszINF,
pszSection, hHKLMBackKey, hHKCUBackKey, dwFlags);
......
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