advpack: Forward RegSaveRestoreOnINFA to its Unicode counterpart.

This commit is contained in:
James Hawkins 2006-04-03 12:04:32 -05:00 committed by Alexandre Julliard
parent 96a428066a
commit 844eebd0e7
2 changed files with 33 additions and 4 deletions

View File

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

View File

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