diff --git a/cfg/windows.cfg b/cfg/windows.cfg index 2fbeb4ff2..ccf0a9d8f 100644 --- a/cfg/windows.cfg +++ b/cfg/windows.cfg @@ -4803,7 +4803,10 @@ HFONT CreateFont( - + + false diff --git a/test/cfg/windows.cpp b/test/cfg/windows.cpp index 0d5f2d812..9c5ab3bb7 100644 --- a/test/cfg/windows.cpp +++ b/test/cfg/windows.cpp @@ -19,6 +19,13 @@ #include #include +void resourceLeak_OpenThread(const DWORD dwDesiredAccess, const BOOL bInheritHandle, const DWORD dwThreadId) +{ + HANDLE proc = OpenThread(dwDesiredAccess, bInheritHandle, dwThreadId); + if (proc != INVALID_HANDLE_VALUE) {} + // cppcheck-suppress resourceLeak +} + void resourceLeak_OpenProcess(const DWORD dwDesiredAccess, const BOOL bInheritHandle, const DWORD dwProcessId) { HANDLE proc = OpenProcess(dwDesiredAccess, bInheritHandle, dwProcessId);