From 8b8b8452b6c7d7abb41750c8147685c5ed2c5711 Mon Sep 17 00:00:00 2001 From: Sergey Isakov Date: Mon, 23 Mar 2020 19:57:09 +0300 Subject: [PATCH] fix compilation Signed-off-by: Sergey Isakov --- rEFIt_UEFI/refit/menu.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/rEFIt_UEFI/refit/menu.cpp b/rEFIt_UEFI/refit/menu.cpp index 065d63860..dbbbc142f 100644 --- a/rEFIt_UEFI/refit/menu.cpp +++ b/rEFIt_UEFI/refit/menu.cpp @@ -2560,10 +2560,16 @@ UINTN REFIT_MENU_SCREEN::RunGenericMenu(IN MENU_STYLE_FUNC StyleFunc, IN OUT INT } if (HaveTimeout) { - TimeoutMessage = PoolPrint(L"%s in %d seconds", TimeoutText.data(), TimeoutCountdown); - // XStringW TOMessage = TimeoutText + L" in " + WPrintf("%d", TimeoutCountdown) + L" seconds"; +#if USE_XTHEME + //TimeoutMessage = PoolPrint(L"%s in %d seconds", TimeoutText.data(), TimeoutCountdown); + XStringW TOMessage = TimeoutText + L" in " + WPrintf("%d", TimeoutCountdown) + L" seconds"; + ((*this).*(StyleFunc))(MENU_FUNCTION_PAINT_TIMEOUT, TOMessage.data()); +// FreePool(TimeoutMessage); +#else + TimeoutMessage = PoolPrint(L"%s in %d seconds", TimeoutText, TimeoutCountdown); ((*this).*(StyleFunc))(MENU_FUNCTION_PAINT_TIMEOUT, TimeoutMessage); FreePool(TimeoutMessage); +#endif } if (gEvent) { //for now used at CD eject.