setupapi: Forward SetupInstallServicesFromInfSectionA to W-function.
authorPaul Vriens <paul.vriens.wine@gmail.com>
Wed, 26 Mar 2008 12:17:31 +0000 (13:17 +0100)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 26 Mar 2008 12:46:16 +0000 (13:46 +0100)
dlls/setupapi/install.c

index ad4464052c7b44401dd60b6b582a374505accc2e..3c5534732fd57638f074b2b1f3006a4bbca2f633 100644 (file)
@@ -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;
 }