Browse Source

* move setup of secrec outside of the if-statement as it's the same for both cases

Sven/Sarah Barth 1 year ago
parent
commit
c2664fdfa5
1 changed files with 2 additions and 4 deletions
  1. 2 4
      compiler/ogcoff.pas

+ 2 - 4
compiler/ogcoff.pas

@@ -2551,16 +2551,14 @@ const pemagic : array[0..3] of byte = (
                     begin
                     begin
                       FCoffSyms.Read(boauxrec,sizeof(boauxrec));
                       FCoffSyms.Read(boauxrec,sizeof(boauxrec));
                       psecrec:=pcoffsectionrec(@boauxrec[0]);
                       psecrec:=pcoffsectionrec(@boauxrec[0]);
-		      secrec:=psecrec^;
-		      MaybeSwap(secrec);
                     end
                     end
                   else
                   else
                     begin
                     begin
                       FCoffSyms.Read(auxrec,sizeof(auxrec));
                       FCoffSyms.Read(auxrec,sizeof(auxrec));
                       psecrec:=pcoffsectionrec(@auxrec);
                       psecrec:=pcoffsectionrec(@auxrec);
-		      secrec:=psecrec^;
-		      MaybeSwap(secrec);
                     end;
                     end;
+                  secrec:=psecrec^;
+                  MaybeSwap(secrec);
 
 
                   case secrec.select of
                   case secrec.select of
                     IMAGE_COMDAT_SELECT_NODUPLICATES:
                     IMAGE_COMDAT_SELECT_NODUPLICATES: