https://git.reactos.org/?p=reactos.git;a=commitdiff;h=7b410fb8cadb8184cdf25272148812ab979b5cf0

commit 7b410fb8cadb8184cdf25272148812ab979b5cf0
Author:     Hermès Bélusca-Maïto <hermes.belusca-ma...@reactos.org>
AuthorDate: Mon May 2 01:26:48 2022 +0200
Commit:     Hermès Bélusca-Maïto <hermes.belusca-ma...@reactos.org>
CommitDate: Sun Dec 24 21:54:24 2023 +0100

    [NTOS:INBV] Don't hardcode the off-screen rot-bar-bits buffer size.
---
 ntoskrnl/inbv/bootanim.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ntoskrnl/inbv/bootanim.c b/ntoskrnl/inbv/bootanim.c
index 68351e6de9b..bc8b9a3960c 100644
--- a/ntoskrnl/inbv/bootanim.c
+++ b/ntoskrnl/inbv/bootanim.c
@@ -476,7 +476,7 @@ DisplayBootBitmap(
     PVOID BootCopy = NULL, BootProgress = NULL, BootLogo = NULL, Header = 
NULL, Footer = NULL;
 
 #ifdef INBV_ROTBAR_IMPLEMENTED
-    UCHAR Buffer[24 * 9];
+    UCHAR Buffer[RTL_NUMBER_OF(RotBarBuffer)];
     PVOID Bar = NULL, LineBmp = NULL;
     ROT_BAR_TYPE TempRotBarSelection = RB_UNSPECIFIED;
     NTSTATUS Status;

Reply via email to