struct inf_file *file = hinf;
int section_index;
- SetLastError( ERROR_SECTION_NOT_FOUND );
for (file = hinf; file; file = file->next)
{
if ((section_index = find_section( file, section )) == -1) continue;
- SetLastError( ERROR_LINE_NOT_FOUND );
if (index < file->sections[section_index]->nb_lines)
{
context->Inf = hinf;
index -= file->sections[section_index]->nb_lines;
}
TRACE( "(%p,%s) not found\n", hinf, debugstr_w(section) );
+ SetLastError( ERROR_LINE_NOT_FOUND );
return FALSE;
}
struct inf_file *file;
int section_index;
- SetLastError( ERROR_SECTION_NOT_FOUND );
for (file = hinf; file; file = file->next)
{
if ((section_index = find_section( file, section )) == -1) continue;
ctx.Line = -1;
return SetupFindNextMatchLineW( &ctx, key, context );
}
- SetLastError( ERROR_LINE_NOT_FOUND ); /* found at least one section */
if (file->sections[section_index]->nb_lines)
{
context->Inf = hinf;
}
}
TRACE( "(%p,%s,%s): not found\n", hinf, debugstr_w(section), debugstr_w(key) );
+ SetLastError( ERROR_LINE_NOT_FOUND );
return FALSE;
}