From be5d3b2f852d5ba23ee43450efe065da92f9cddd Mon Sep 17 00:00:00 2001 From: cdozdil Date: Wed, 7 May 2025 21:59:14 +0300 Subject: [PATCH] Get and report correct init result --- OptiScaler/menu/menu_common.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OptiScaler/menu/menu_common.cpp b/OptiScaler/menu/menu_common.cpp index 9d1ed9c7..15333a32 100644 --- a/OptiScaler/menu/menu_common.cpp +++ b/OptiScaler/menu/menu_common.cpp @@ -3592,12 +3592,12 @@ void MenuCommon::Init(HWND InHwnd, bool isUWP) if (!isUWP) { - ImGui_ImplWin32_Init(InHwnd); + initResult = ImGui_ImplWin32_Init(InHwnd); LOG_DEBUG("ImGui_ImplWin32_Init result: {0}", initResult); } else { - ImGui_ImplUwp_Init(InHwnd); + initResult = ImGui_ImplUwp_Init(InHwnd); ImGui_BindUwpKeyUp(KeyUp); LOG_DEBUG("ImGui_ImplUwp_Init result: {0}", initResult); }