Commit ea909a25 authored by Christophe Massiot's avatar Christophe Massiot

fix bug introduced in r79

parent bb9d65ab
......@@ -1082,7 +1082,7 @@ off_t LookupAuxFile( const char *psz_arg, int64_t i_wanted, bool b_absolute )
uint8_t *p_mid_aux = p_aux + i_mid_offset * sizeof(uint64_t);
uint64_t i_mid_stc = FromSTC( p_mid_aux );
if ( i_offset1 == i_mid_offset && i_offset2 == i_mid_offset )
if ( i_offset1 == i_mid_offset )
break;
if ( i_mid_stc >= i_wanted )
......@@ -1094,7 +1094,7 @@ off_t LookupAuxFile( const char *psz_arg, int64_t i_wanted, bool b_absolute )
munmap( p_aux, stc_stat.st_size );
close( i_stc_fd );
return i_offset2;
return i_offset1;
}
/*****************************************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment