[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dotgnu-pnet-commits] pnet/engine lib_reflect.c,1.52,1.53
From: |
Rhys Weatherley <address@hidden> |
Subject: |
[Dotgnu-pnet-commits] pnet/engine lib_reflect.c,1.52,1.53 |
Date: |
Fri, 14 Nov 2003 21:39:16 +0000 |
Update of /cvsroot/dotgnu-pnet/pnet/engine
In directory subversions:/tmp/cvs-serv10794/engine
Modified Files:
lib_reflect.c
Log Message:
Resource sections should be padded to a multiple of 4 bytes.
Index: lib_reflect.c
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnet/engine/lib_reflect.c,v
retrieving revision 1.52
retrieving revision 1.53
diff -C2 -d -r1.52 -r1.53
*** lib_reflect.c 14 Nov 2003 00:46:22 -0000 1.52
--- lib_reflect.c 14 Nov 2003 21:39:14 -0000 1.53
***************
*** 1075,1078 ****
--- 1075,1079 ----
unsigned long sectionLen;
unsigned long start;
+ unsigned long pad;
ILUInt32 length;
***************
*** 1097,1103 ****
return 0;
}
! start += length + 4;
! section += length + 4;
! sectionLen -= length + 4;
--posn;
}
--- 1098,1112 ----
return 0;
}
! if((length % 4) != 0)
! {
! pad = 4 - (length % 4);
! }
! else
! {
! pad = 0;
! }
! start += length + pad + 4;
! section += length + pad + 4;
! sectionLen -= length + pad + 4;
--posn;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dotgnu-pnet-commits] pnet/engine lib_reflect.c,1.52,1.53,
Rhys Weatherley <address@hidden> <=