From f14eecded81cb576d2242e7405d338bcf88e8701 Mon Sep 17 00:00:00 2001 From: Paul Vriens Date: Wed, 26 Mar 2008 13:17:31 +0100 Subject: [PATCH] setupapi: Forward SetupInstallServicesFromInfSectionA to W-function. --- dlls/setupapi/install.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/dlls/setupapi/install.c b/dlls/setupapi/install.c index ad4464052c7..3c5534732fd 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; }