From 555cebb29e1a692a3230c9f571d20d66341d8d00 Mon Sep 17 00:00:00 2001 From: Benjamin Michaelis Date: Wed, 3 Apr 2024 19:46:14 -0700 Subject: [PATCH] fix: Allocation to Protection in comment (#759) Fixes #733 --- Errata.md | 3 ++- src/Chapter23/Listing23.02.TheVirtualAllocExAPI.cs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Errata.md b/Errata.md index 533ece348..0bad05a88 100644 --- a/Errata.md +++ b/Errata.md @@ -35,4 +35,5 @@ Zhou Jing | 18 | 902-903 | Change CommandLineAliasAttribute to CommandLineSwitch Zhou Jing | 23 | 1105 | Change `Length = 10` in listing 23.20 to `Length = 12` to show entire output message Zhou Jing | 18 | 926-927 | Change 'LastName' references to be 'FirstName' in paragraphs Jinhang He | 5 | 255 | Edit listing 5.20 to used `image[index]` for the second print statement -Zhou Jing | 18 | 908 | Change comment in Listing 18.21 to "Restrict the attribute to properties and fields" from "Restrict the attribute to properties and methods" \ No newline at end of file +Zhou Jing | 18 | 908 | Change comment in Listing 18.21 to "Restrict the attribute to properties and fields" from "Restrict the attribute to properties and methods" +Zhou Jing | 23 | 1080 | Change "DWORD flProtect); // The type of memory allocation" to "// The type of memory protection" \ No newline at end of file diff --git a/src/Chapter23/Listing23.02.TheVirtualAllocExAPI.cs b/src/Chapter23/Listing23.02.TheVirtualAllocExAPI.cs index 2df714e10..ad0b7d7e2 100644 --- a/src/Chapter23/Listing23.02.TheVirtualAllocExAPI.cs +++ b/src/Chapter23/Listing23.02.TheVirtualAllocExAPI.cs @@ -17,6 +17,6 @@ LPVOID VirtualAllocEx( // is NULL, the function rounds dwSize // up to the next page boundary. DWORD flAllocationType, // The type of memory allocation - DWORD flProtect); // The type of memory allocation + DWORD flProtect); // The type of memory protection #endregion INCLUDE } \ No newline at end of file