diff --git a/cfg/windows.cfg b/cfg/windows.cfg index 2c4437067..2fbeb4ff2 100644 --- a/cfg/windows.cfg +++ b/cfg/windows.cfg @@ -4800,6 +4800,23 @@ HFONT CreateFont( + + + + false + + + + + + + + + + + diff --git a/test/cfg/windows.cpp b/test/cfg/windows.cpp index ffcbd94ad..0d5f2d812 100644 --- a/test/cfg/windows.cpp +++ b/test/cfg/windows.cpp @@ -19,6 +19,13 @@ #include #include +void resourceLeak_OpenProcess(const DWORD dwDesiredAccess, const BOOL bInheritHandle, const DWORD dwProcessId) +{ + HANDLE proc = OpenProcess(dwDesiredAccess, bInheritHandle, dwProcessId); + if (proc != INVALID_HANDLE_VALUE) {} + // cppcheck-suppress resourceLeak +} + /// https://learn.microsoft.com/en-us/windows/console/flushconsoleinputbuffer BOOL unreachableCode_FlushConsoleInputBuffer(int &val) {