advpack: Forward the ansi user stub APIs to their Unicode counterparts.

This commit is contained in:
James Hawkins 2006-03-22 14:15:51 -06:00 committed by Alexandre Julliard
parent ca3ad7d6dc
commit 72581bd2d7
2 changed files with 53 additions and 3 deletions

View File

@ -683,9 +683,34 @@ HRESULT WINAPI TranslateInfStringExW(HINF hInf, LPCWSTR pszInfFilename,
/***********************************************************************
* UserInstStubWrapperA (ADVPACK.@)
*
* See UserInstStubWrapperW.
*/
HRESULT WINAPI UserInstStubWrapperA(HWND hWnd, HINSTANCE hInstance,
LPSTR pszParms, INT nShow)
{
UNICODE_STRING parmsW;
HRESULT res;
TRACE("(%p, %p, %p, %i)\n", hWnd, hInstance, pszParms, nShow);
if (!pszParms)
return E_INVALIDARG;
RtlCreateUnicodeStringFromAsciiz(&parmsW, pszParms);
res = UserInstStubWrapperW(hWnd, hInstance, parmsW.Buffer, nShow);
RtlFreeUnicodeString(&parmsW);
return res;
}
/***********************************************************************
* UserInstStubWrapperW (ADVPACK.@)
*/
HRESULT WINAPI UserInstStubWrapperW(HWND hWnd, HINSTANCE hInstance,
LPWSTR pszParms, INT nShow)
{
FIXME("(%p, %p, %p, %i) stub\n", hWnd, hInstance, pszParms, nShow);
@ -694,9 +719,34 @@ HRESULT WINAPI UserInstStubWrapperA(HWND hWnd, HINSTANCE hInstance,
/***********************************************************************
* UserUnInstStubWrapperA (ADVPACK.@)
*
* See UserUnInstStubWrapperW.
*/
HRESULT WINAPI UserUnInstStubWrapperA(HWND hWnd, HINSTANCE hInstance,
LPSTR pszParms, INT nShow)
LPSTR pszParms, INT nShow)
{
UNICODE_STRING parmsW;
HRESULT res;
TRACE("(%p, %p, %p, %i)\n", hWnd, hInstance, pszParms, nShow);
if (!pszParms)
return E_INVALIDARG;
RtlCreateUnicodeStringFromAsciiz(&parmsW, pszParms);
res = UserUnInstStubWrapperW(hWnd, hInstance, parmsW.Buffer, nShow);
RtlFreeUnicodeString(&parmsW);
return res;
}
/***********************************************************************
* UserUnInstStubWrapperW (ADVPACK.@)
*/
HRESULT WINAPI UserUnInstStubWrapperW(HWND hWnd, HINSTANCE hInstance,
LPWSTR pszParms, INT nShow)
{
FIXME("(%p, %p, %p, %i) stub\n", hWnd, hInstance, pszParms, nShow);

View File

@ -75,8 +75,8 @@
@ stdcall TranslateInfStringExW(long wstr wstr wstr wstr long ptr ptr)
@ stdcall TranslateInfStringEx(long str str str str long ptr ptr) TranslateInfStringExA
@ stdcall UserInstStubWrapperA(long long str long)
# stdcall UserInstStubWrapperW(long long wstr long)
@ stdcall UserInstStubWrapperW(long long wstr long)
@ stdcall UserInstStubWrapper(long long str long) UserInstStubWrapperA
@ stdcall UserUnInstStubWrapperA(long long str long)
# stdcall UserUnInstStubWrapperW(long long wstr long)
@ stdcall UserUnInstStubWrapperW(long long wstr long)
@ stdcall UserUnInstStubWrapper(long long str long) UserUnInstStubWrapperA