[PATCH] Forward SetupInstallServicesFromInfSectionA to W-function

Paul Vriens Paul.Vriens.Wine at gmail.com
Wed Mar 26 07:17:31 CDT 2008


---
 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;
 }
-- 
1.5.4.1


--------------040801060701050407000902--



More information about the wine-patches mailing list