advpack: Forward LaunchINFSectionA to its Unicode counterpart.

This commit is contained in:
James Hawkins 2006-04-03 12:04:59 -05:00 committed by Alexandre Julliard
parent 844eebd0e7
commit 39cedf0bed
2 changed files with 24 additions and 3 deletions

View File

@ -36,7 +36,7 @@
@ stdcall GetVersionFromFileEx(str ptr ptr long) GetVersionFromFileExA @ stdcall GetVersionFromFileEx(str ptr ptr long) GetVersionFromFileExA
@ stdcall IsNTAdmin(long ptr) @ stdcall IsNTAdmin(long ptr)
@ stdcall LaunchINFSectionA(ptr ptr str long) @ stdcall LaunchINFSectionA(ptr ptr str long)
# stdcall LaunchINFSectionW(ptr ptr wstr long) @ stdcall LaunchINFSectionW(ptr ptr wstr long)
@ stdcall LaunchINFSection(ptr ptr str long) LaunchINFSectionA @ stdcall LaunchINFSection(ptr ptr str long) LaunchINFSectionA
@ stdcall LaunchINFSectionExA(ptr ptr str long) @ stdcall LaunchINFSectionExA(ptr ptr str long)
@ stdcall LaunchINFSectionExW(ptr ptr wstr long) @ stdcall LaunchINFSectionExW(ptr ptr wstr long)

View File

@ -156,6 +156,27 @@ HRESULT WINAPI ExecuteCabW(HWND hwnd, CABINFOW* pCab, LPVOID pReserved)
/*********************************************************************** /***********************************************************************
* LaunchINFSectionA (ADVPACK.@) * LaunchINFSectionA (ADVPACK.@)
* *
* See LaunchINFSectionW.
*/
INT WINAPI LaunchINFSectionA(HWND hWnd, HINSTANCE hInst, LPSTR cmdline, INT show)
{
UNICODE_STRING cmd;
HRESULT hr;
TRACE("(%p, %p, %s, %d)\n", hWnd, hInst, debugstr_a(cmdline), show);
RtlCreateUnicodeStringFromAsciiz(&cmd, cmdline);
hr = LaunchINFSectionW(hWnd, hInst, cmd.Buffer, show);
RtlFreeUnicodeString(&cmd);
return hr;
}
/***********************************************************************
* LaunchINFSectionW (ADVPACK.@)
*
* Installs an INF section without BACKUP/ROLLBACK capabilities. * Installs an INF section without BACKUP/ROLLBACK capabilities.
* *
* PARAMS * PARAMS
@ -180,9 +201,9 @@ HRESULT WINAPI ExecuteCabW(HWND hwnd, CABINFOW* pCab, LPVOID pReserved)
* BUGS * BUGS
* Unimplemented. * Unimplemented.
*/ */
INT WINAPI LaunchINFSectionA( HWND hWnd, HINSTANCE hInst, LPSTR cmdline, INT show ) INT WINAPI LaunchINFSectionW(HWND hWnd, HINSTANCE hInst, LPWSTR cmdline, INT show)
{ {
FIXME("(%p %p %s %d): stub\n", hWnd, hInst, debugstr_a(cmdline), show ); FIXME("(%p, %p, %s, %d): stub\n", hWnd, hInst, debugstr_w(cmdline), show);
return 0; return 0;
} }