From 39cedf0bedf785d38e96a26e27b07db924776b3f Mon Sep 17 00:00:00 2001 From: James Hawkins Date: Mon, 3 Apr 2006 12:04:59 -0500 Subject: [PATCH] advpack: Forward LaunchINFSectionA to its Unicode counterpart. --- dlls/advpack/advpack.spec | 2 +- dlls/advpack/install.c | 25 +++++++++++++++++++++++-- 2 files changed, 24 insertions(+), 3 deletions(-) diff --git a/dlls/advpack/advpack.spec b/dlls/advpack/advpack.spec index 7dd0bb4a2b5..172853751b7 100644 --- a/dlls/advpack/advpack.spec +++ b/dlls/advpack/advpack.spec @@ -36,7 +36,7 @@ @ stdcall GetVersionFromFileEx(str ptr ptr long) GetVersionFromFileExA @ stdcall IsNTAdmin(long ptr) @ 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 LaunchINFSectionExA(ptr ptr str long) @ stdcall LaunchINFSectionExW(ptr ptr wstr long) diff --git a/dlls/advpack/install.c b/dlls/advpack/install.c index 80ed36eac8e..c8ce340c233 100644 --- a/dlls/advpack/install.c +++ b/dlls/advpack/install.c @@ -156,6 +156,27 @@ HRESULT WINAPI ExecuteCabW(HWND hwnd, CABINFOW* pCab, LPVOID pReserved) /*********************************************************************** * 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. * * PARAMS @@ -180,9 +201,9 @@ HRESULT WINAPI ExecuteCabW(HWND hwnd, CABINFOW* pCab, LPVOID pReserved) * BUGS * 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; }