Skip to content

Commit

Permalink
Fixed implementation of VariableDeclarationExpression::loadNativeFunc…
Browse files Browse the repository at this point in the history
…tion() for Windows target.
  • Loading branch information
nthnn committed Dec 13, 2024
1 parent 1150f52 commit 2fb28ca
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/n8/ast/expression/VariableDeclarationExpression.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,8 @@ NativeFunction VariableDeclarationExpression::loadNativeFunction(
#if defined(_WIN32) || defined(_WIN64) || defined(WIN32) || defined(WIN64)

std::filesystem::path path(library);
std::wstring parentPath = path.parent_path().wstring();

AddDllDirectory(parentPath.c_str());
AddDllDirectory(path.parent_path().string().c_str());
handle = LoadLibraryA(library.c_str());

#elif defined(__APPLE__)
Expand Down

0 comments on commit 2fb28ca

Please sign in to comment.