Skip to content

Commit 85d7215

Browse files
SinghRajenMdonho
authored andcommitted
Fixes security vulnerability
Fix #12113, close #12114
1 parent 15e5da6 commit 85d7215

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: PowerEditor/src/MISC/Exception/MiniDumper.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ bool MiniDumper::writeDump(EXCEPTION_POINTERS * pExceptionInfo)
3434
LPCTSTR szResult = NULL;
3535
bool retval = false;
3636

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

3939
if (hDll)
4040
{

Diff for: PowerEditor/src/Parameters.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1169,7 +1169,7 @@ bool NppParameters::load()
11691169
//---------------------------------------------//
11701170
// Dlg theme texture function for xp and vista //
11711171
//---------------------------------------------//
1172-
_hUXTheme = ::LoadLibrary(TEXT("uxtheme.dll"));
1172+
_hUXTheme = ::LoadLibraryEx(TEXT("uxtheme.dll"), nullptr, LOAD_LIBRARY_SEARCH_SYSTEM32);
11731173
if (_hUXTheme)
11741174
_enableThemeDialogTextureFuncAddr = (WNDPROC)::GetProcAddress(_hUXTheme, "EnableThemeDialogTexture");
11751175

0 commit comments

Comments
 (0)