From 7b410fb8cadb8184cdf25272148812ab979b5cf0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herm=C3=A8s=20B=C3=A9lusca-Ma=C3=AFto?= Date: Mon, 2 May 2022 01:26:48 +0200 Subject: [PATCH] [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;