Skip to content
Permalink
Browse files Browse the repository at this point in the history
Fixes security vulnerability
Fix #12113, close #12114
  • Loading branch information
SinghRajenM authored and donho committed Sep 7, 2022
1 parent 15e5da6 commit 85d7215
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion PowerEditor/src/MISC/Exception/MiniDumper.cpp
Expand Up @@ -34,7 +34,7 @@ bool MiniDumper::writeDump(EXCEPTION_POINTERS * pExceptionInfo)
LPCTSTR szResult = NULL;
bool retval = false;

HMODULE hDll = ::LoadLibrary( TEXT("DBGHELP.DLL") ); //that wont work on older windows version than XP, #care :)
HMODULE hDll = ::LoadLibraryEx(TEXT("DBGHELP.DLL"), nullptr, LOAD_LIBRARY_SEARCH_SYSTEM32); //that wont work on older windows version than XP, #care :)

if (hDll)
{
Expand Down
2 changes: 1 addition & 1 deletion PowerEditor/src/Parameters.cpp
Expand Up @@ -1169,7 +1169,7 @@ bool NppParameters::load()
//---------------------------------------------//
// Dlg theme texture function for xp and vista //
//---------------------------------------------//
_hUXTheme = ::LoadLibrary(TEXT("uxtheme.dll"));
_hUXTheme = ::LoadLibraryEx(TEXT("uxtheme.dll"), nullptr, LOAD_LIBRARY_SEARCH_SYSTEM32);
if (_hUXTheme)
_enableThemeDialogTextureFuncAddr = (WNDPROC)::GetProcAddress(_hUXTheme, "EnableThemeDialogTexture");

Expand Down

1 comment on commit 85d7215

@rajeshgutagi
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this solution for below vulnerability?
CVE-2022-32168 - advisory for https://www.mend.io/vulnerability-database/

Please sign in to comment.