Lines Matching refs:PEHeaderOffset
58 unsigned long PEHeaderOffset = (long)buffer[OFFSET_PE_OFFSET]; in normalize_pe_image() local
59 if (PEHeaderOffset < nBufferSize-4) in normalize_pe_image()
61 if ( buffer[PEHeaderOffset+0] == sal_uInt8('P') && in normalize_pe_image()
62 buffer[PEHeaderOffset+1] == sal_uInt8('E') && in normalize_pe_image()
63 buffer[PEHeaderOffset+2] == 0 && in normalize_pe_image()
64 buffer[PEHeaderOffset+3] == 0 ) in normalize_pe_image()
66 PEHeaderOffset += PE_SIGNATURE_SIZE; in normalize_pe_image()
67 if (PEHeaderOffset+OFFSET_COFF_TIMEDATESTAMP < nBufferSize-4) in normalize_pe_image()
72 buffer[PEHeaderOffset+OFFSET_COFF_TIMEDATESTAMP+0] = 0; in normalize_pe_image()
73 buffer[PEHeaderOffset+OFFSET_COFF_TIMEDATESTAMP+1] = 0; in normalize_pe_image()
74 buffer[PEHeaderOffset+OFFSET_COFF_TIMEDATESTAMP+2] = 0; in normalize_pe_image()
75 buffer[PEHeaderOffset+OFFSET_COFF_TIMEDATESTAMP+3] = 0; in normalize_pe_image()
78 if (PEHeaderOffset+COFFHEADER_SIZE+OFFSET_PE_OPTIONALHEADER_CHECKSUM < nBufferSize-4) in normalize_pe_image()
81 buffer[PEHeaderOffset+COFFHEADER_SIZE+OFFSET_PE_OPTIONALHEADER_CHECKSUM] = 0; in normalize_pe_image()
82 buffer[PEHeaderOffset+COFFHEADER_SIZE+OFFSET_PE_OPTIONALHEADER_CHECKSUM+1] = 0; in normalize_pe_image()
83 buffer[PEHeaderOffset+COFFHEADER_SIZE+OFFSET_PE_OPTIONALHEADER_CHECKSUM+2] = 0; in normalize_pe_image()
84 buffer[PEHeaderOffset+COFFHEADER_SIZE+OFFSET_PE_OPTIONALHEADER_CHECKSUM+3] = 0; in normalize_pe_image()