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 ec27a2c commit 4e62378
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/n8/ast/expression/VariableDeclarationExpression.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,9 @@ NativeFunction VariableDeclarationExpression::loadNativeFunction(
std::string parentFolder = path
.parent_path()
.string();
std::wstring searchPath = parentFolder.wstring();

SetDllDirectoryW(parentFolder.c_str());
SetDllDirectoryW(searchPath.c_str());
handle = LoadLibraryA(library.c_str());

#elif defined(__APPLE__)
Expand Down

0 comments on commit 4e62378

Please sign in to comment.