setupapi: Forward SetupInstallServicesFromInfSectionA to W-function.

This commit is contained in:
Paul Vriens 2008-03-26 13:17:31 +01:00 committed by Alexandre Julliard
parent 0936601f5b
commit f14eecded8
1 changed files with 12 additions and 2 deletions

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