dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] pnet/ilalink link_res.c,1.2,1.3


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] pnet/ilalink link_res.c,1.2,1.3
Date: Fri, 14 Nov 2003 21:39:17 +0000

Update of /cvsroot/dotgnu-pnet/pnet/ilalink
In directory subversions:/tmp/cvs-serv10794/ilalink

Modified Files:
        link_res.c 
Log Message:


Resource sections should be padded to a multiple of 4 bytes.


Index: link_res.c
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/ilalink/link_res.c,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** link_res.c  9 Jul 2003 00:53:21 -0000       1.2
--- link_res.c  14 Nov 2003 21:39:14 -0000      1.3
***************
*** 58,61 ****
--- 58,68 ----
        }
  
+       /* Pad the resource section to a multiple of 4 bytes */
+       if((length % 4) != 0)
+       {
+               ILMemZero(buffer, 4);
+               ILWriterTextWrite(linker->writer, buffer, 4 - (int)(length % 
4));
+       }
+ 
        /* Back-patch the place-holder with the resource length */
        ILWriterTextWrite32Bit(linker->writer, rva, length);





reply via email to

[Prev in Thread] Current Thread [Next in Thread]