From 8f88528aa16a3351a1c68634780d99b0a8a02930 Mon Sep 17 00:00:00 2001 From: chrchr Date: Tue, 8 Aug 2023 12:37:40 +0200 Subject: [PATCH 1/3] Add test --- test/cfg/windows.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/cfg/windows.cpp b/test/cfg/windows.cpp index e09e9f073a8..55eb21ecda2 100644 --- a/test/cfg/windows.cpp +++ b/test/cfg/windows.cpp @@ -1113,4 +1113,8 @@ void invalidPrintfArgType_StructMember(double d) { // #9672 my_struct_t my_struct; // cppcheck-suppress invalidPrintfArgType_sint my_struct.st.Format("%d", d); +} + +BOOL MyEnableWindow(HWND hWnd, BOOL bEnable) { + return EnableWindow(hWnd, bEnable); } \ No newline at end of file From 4d7473b1b1eccefcb23fd11fade399ca0d231b97 Mon Sep 17 00:00:00 2001 From: chrchr Date: Tue, 8 Aug 2023 12:38:25 +0200 Subject: [PATCH 2/3] Fix argument direction in windows.cfg --- cfg/windows.cfg | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/cfg/windows.cfg b/cfg/windows.cfg index b4d4d003907..48c1e9f2f84 100644 --- a/cfg/windows.cfg +++ b/cfg/windows.cfg @@ -2960,7 +2960,7 @@ HFONT CreateFont( - + @@ -2985,7 +2985,7 @@ HFONT CreateFont( - + @@ -3023,7 +3023,7 @@ HFONT CreateFont( _In_ LPARAM lParam); --> false - + @@ -3044,7 +3044,7 @@ HFONT CreateFont( _In_ LPARAM lParam); --> false - + @@ -3306,7 +3306,7 @@ HFONT CreateFont( false - + @@ -3315,10 +3315,10 @@ HFONT CreateFont( false - + - + @@ -3327,7 +3327,7 @@ HFONT CreateFont( false - + @@ -3339,7 +3339,7 @@ HFONT CreateFont( false - + From 9ed6a4fc2f46c13fd9c7a9d617be8824b98c3c9c Mon Sep 17 00:00:00 2001 From: chrchr Date: Tue, 8 Aug 2023 18:37:00 +0200 Subject: [PATCH 3/3] Add missing Qt macros --- cfg/qt.cfg | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cfg/qt.cfg b/cfg/qt.cfg index ee0d314ce9b..cae153acf1e 100644 --- a/cfg/qt.cfg +++ b/cfg/qt.cfg @@ -5097,6 +5097,9 @@ + + +