James Hawkins : advpack: Forward LaunchINFSectionExA to its Unicode counterpart.

Alexandre Julliard julliard at wine.codeweavers.com
Thu Mar 30 05:44:25 CST 2006


Module: wine
Branch: refs/heads/master
Commit: 724a4b36c211193e4959a508e3b5e3cc41095808
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=724a4b36c211193e4959a508e3b5e3cc41095808

Author: James Hawkins <truiken at gmail.com>
Date:   Thu Mar 30 04:05:27 2006 -0600

advpack: Forward LaunchINFSectionExA to its Unicode counterpart.

---

 dlls/advpack/install.c |   25 +++++++++++++++++++++++--
 1 files changed, 23 insertions(+), 2 deletions(-)

diff --git a/dlls/advpack/install.c b/dlls/advpack/install.c
index 417084e..f44c042 100644
--- a/dlls/advpack/install.c
+++ b/dlls/advpack/install.c
@@ -138,6 +138,27 @@ INT WINAPI LaunchINFSectionA( HWND hWnd,
 /***********************************************************************
  *      LaunchINFSectionExA (ADVPACK.@)
  *
+ * See LaunchINFSectionExW.
+ */
+HRESULT WINAPI LaunchINFSectionExA(HWND hWnd, HINSTANCE hInst, LPSTR cmdline, INT show)
+{
+    UNICODE_STRING cmd;
+    HRESULT hr;
+
+    TRACE("(%p, %p, %s, %d): stub\n", hWnd, hInst, debugstr_a(cmdline), show);
+
+    RtlCreateUnicodeStringFromAsciiz(&cmd, cmdline);
+
+    hr = LaunchINFSectionExW(hWnd, hInst, cmd.Buffer, show);
+
+    RtlFreeUnicodeString(&cmd);
+
+    return hr;
+}
+
+/***********************************************************************
+ *      LaunchINFSectionExW (ADVPACK.@)
+ *
  * Installs an INF section with BACKUP/ROLLBACK capabilities.
  *
  * PARAMS
@@ -162,9 +183,9 @@ INT WINAPI LaunchINFSectionA( HWND hWnd,
  * BUGS
  *  Unimplemented.
  */
-HRESULT WINAPI LaunchINFSectionExA( HWND hWnd, HINSTANCE hInst, LPSTR cmdline, INT show )
+HRESULT WINAPI LaunchINFSectionExW(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 E_FAIL;
 }
 




More information about the wine-cvs mailing list