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;
}
SetLastError(0xdeadbeef);
retb = SetupGetLineByIndexA( hinf, "ImNotThere", 1, &context );
ok(!retb, "Expected failure\n");
- todo_wine
ok(GetLastError() == ERROR_LINE_NOT_FOUND,
"Expected ERROR_LINE_NOT_FOUND, got %08x\n", GetLastError());