[NTOS:INBV] Don't hardcode the off-screen rot-bar-bits buffer size.

This commit is contained in:
Hermès Bélusca-Maïto 2022-05-02 01:26:48 +02:00
parent 81dc30a434
commit 7b410fb8ca
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0

View file

@ -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;