Skip to content

Commit

Permalink
use LoadLibraryExedir function
Browse files Browse the repository at this point in the history
  • Loading branch information
beru committed Oct 11, 2022
1 parent 7421430 commit 12ba7b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sakura_core/macro/CPythonMacroManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
#include "_os/OleTypes.h"
#include "CMacro.h"
#include "util/tchar_convert.h"
#include "util/module.h"

namespace {

Expand Down Expand Up @@ -930,7 +931,7 @@ bool CPythonMacroManager::ExecKeyMacro(CEditView *EditView, int flags) const
{
static HMODULE s_hModule;
if (!s_hModule) {
s_hModule = LoadLibrary(L"python3.dll");
s_hModule = LoadLibraryExedir(L"python3.dll");
if (!s_hModule) {
return false;
}
Expand Down

0 comments on commit 12ba7b8

Please sign in to comment.