From 1615ecc976796e0278e152b595556c4e3f4a3343 Mon Sep 17 00:00:00 2001 From: Luke Usher Date: Wed, 22 May 2024 12:46:03 +0100 Subject: [PATCH] fix the build on vs2022 17.9.1 --- src/common/util/CxbxUtil.h | 1 + src/gui/DlgAbout.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/util/CxbxUtil.h b/src/common/util/CxbxUtil.h index 367a01e87..a425c283f 100644 --- a/src/common/util/CxbxUtil.h +++ b/src/common/util/CxbxUtil.h @@ -26,6 +26,7 @@ #ifndef CXBXUTIL_H #define CXBXUTIL_H +#include #include #include "xbox_types.h" #include "Cxbx.h" diff --git a/src/gui/DlgAbout.cpp b/src/gui/DlgAbout.cpp index 92b3e4942..36e22173b 100644 --- a/src/gui/DlgAbout.cpp +++ b/src/gui/DlgAbout.cpp @@ -64,7 +64,7 @@ INT_PTR CALLBACK DlgAboutProc(HWND hWndDlg, UINT uMsg, WPARAM wParam, LPARAM lPa SendMessageW(hWndDlg, WM_SETICON, ICON_BIG, (LPARAM)hIcon); // Build the Tab Control - constexpr size_t text_len = longest_str({ "About", "Contributors", "License" }) + 1; + const size_t text_len = longest_str({ "About", "Contributors", "License" }) + 1; char text[text_len]; TCITEM tabInfo; memset(&tabInfo, 0, sizeof(tabInfo));