From 9088827067ae74ffef49cf57c7bcbd40bf4880ae Mon Sep 17 00:00:00 2001 From: Kento Oki Date: Sat, 13 Apr 2024 10:17:58 +0900 Subject: [PATCH] Fix comments --- src/pe/header.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/pe/header.rs b/src/pe/header.rs index 38bcf9a5..56b2f8a0 100644 --- a/src/pe/header.rs +++ b/src/pe/header.rs @@ -864,16 +864,18 @@ pub const RICH_MARKER: u32 = 0x68636952; /// The Rich Header first appeared in Visual Studio 6.0 and contains: a product identifier, build number, and the number of times it was used during the build process. #[derive(Debug, PartialEq, Clone, Default)] pub struct RichHeader<'a> { + /// The Rich header data without the padding. pub data: &'a [u8], + /// The Rich metadata is a pair of 32-bit values that store the tool version and the use count. pub metadatas: Vec, } -/// The Rich metadata is a pair of 16-bit values that store the tool version and the use count. +/// The Rich metadata is a pair of 32-bit values that store the tool version and the use count. #[derive(Debug, PartialEq, Copy, Clone, Default)] pub struct RichMetadata { - /// The tool version is a 16-bit value that stores the build version of the tool. + /// The tool version is a 32-bit value that stores the build version of the tool. pub tool_version: u32, - /// The use count is a 16-bit value that stores the number of times the tool was used during the build process. + /// The use count is a 32-bit value that stores the number of times the tool was used during the build process. pub use_count: u32, }