Paul Vriens : setupapi: Forward SetupInstallServicesFromInfSectionA to W-function.

Alexandre Julliard julliard at winehq.org
Wed Mar 26 09:16:13 CDT 2008


Module: wine
Branch: master
Commit: f14eecded81cb576d2242e7405d338bcf88e8701
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=f14eecded81cb576d2242e7405d338bcf88e8701

Author: Paul Vriens <paul.vriens.wine at gmail.com>
Date:   Wed Mar 26 13:17:31 2008 +0100

setupapi: Forward SetupInstallServicesFromInfSectionA to W-function.

---

 dlls/setupapi/install.c |   14 ++++++++++++--
 1 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/dlls/setupapi/install.c b/dlls/setupapi/install.c
index ad44640..3c55347 100644
--- a/dlls/setupapi/install.c
+++ b/dlls/setupapi/install.c
@@ -1080,6 +1080,16 @@ BOOL WINAPI SetupInstallServicesFromInfSectionW( HINF Inf, PCWSTR SectionName, D
  */
 BOOL WINAPI SetupInstallServicesFromInfSectionA( HINF Inf, PCSTR SectionName, DWORD Flags)
 {
-    FIXME("(%p, %s, %d) stub!\n", Inf, debugstr_a(SectionName), Flags);
-    return FALSE;
+    UNICODE_STRING SectionNameW;
+    BOOL ret = FALSE;
+
+    if (RtlCreateUnicodeStringFromAsciiz( &SectionNameW, SectionName ))
+    {
+        ret = SetupInstallServicesFromInfSectionW( Inf, SectionNameW.Buffer, Flags );
+        RtlFreeUnicodeString( &SectionNameW );
+    }
+    else
+        SetLastError( ERROR_NOT_ENOUGH_MEMORY );
+
+    return ret;
 }




More information about the wine-cvs mailing list