@@ -18,10 +18,10 @@ public static class PortableExecutable
1818 /// <param name="rva">Relative virtual address to convert</param>
1919 /// <param name="sections">Array of sections to check against</param>
2020 /// <returns>Physical address, 0 on error</returns>
21- public static uint ConvertVirtualAddress ( this uint rva , SectionHeader [ ] ? sections )
21+ public static uint ConvertVirtualAddress ( this uint rva , SectionHeader [ ] sections )
2222 {
2323 // If we have an invalid section table, we can't do anything
24- if ( sections == null || sections . Length == 0 )
24+ if ( sections . Length == 0 )
2525 return 0 ;
2626
2727 // If the RVA is 0, we just return 0 because it's invalid
@@ -69,7 +69,7 @@ public static uint ConvertVirtualAddress(this uint rva, SectionHeader[]? section
6969 /// <param name="rva">Relative virtual address to convert</param>
7070 /// <param name="sections">Array of sections to check against</param>
7171 /// <returns>Section index, null on error</returns>
72- public static int ContainingSectionIndex ( this uint rva , SectionHeader [ ] ? sections )
72+ public static int ContainingSectionIndex ( this uint rva , SectionHeader [ ] sections )
7373 {
7474 // If we have an invalid section table, we can't do anything
7575 if ( sections == null || sections . Length == 0 )
@@ -1282,10 +1282,10 @@ public static PopupMenuItem ParsePopupMenuItem(this byte[] data, ref int offset)
12821282 /// <param name="data">Data to parse</param>
12831283 /// <param name="offset">Offset into the byte array</param>
12841284 /// <returns>A filled ResourceHeader on success, null on error</returns>
1285- public static Data . Models . PortableExecutable . Resource . ResourceHeader ParseResourceHeader ( this byte [ ] data , ref int offset )
1285+ public static Models . PortableExecutable . Resource . ResourceHeader ParseResourceHeader ( this byte [ ] data , ref int offset )
12861286 {
12871287 // Read in the table
1288- var obj = new Data . Models . PortableExecutable . Resource . ResourceHeader ( ) ;
1288+ var obj = new Models . PortableExecutable . Resource . ResourceHeader ( ) ;
12891289
12901290 obj . DataSize = data . ReadUInt32LittleEndian ( ref offset ) ;
12911291 obj . HeaderSize = data . ReadUInt32LittleEndian ( ref offset ) ;
0 commit comments