diff --git a/src/n8/ast/expression/VariableDeclarationExpression.cpp b/src/n8/ast/expression/VariableDeclarationExpression.cpp index 07862da..cf2fea2 100644 --- a/src/n8/ast/expression/VariableDeclarationExpression.cpp +++ b/src/n8/ast/expression/VariableDeclarationExpression.cpp @@ -91,7 +91,7 @@ NativeFunction VariableDeclarationExpression::loadNativeFunction( std::filesystem::path path(library); std::wstring parentPath = path.parent_path().wstring(); - SetDllDirectoryW(parentPath.c_str()); + AddDllDirectory(parentPath.c_str()); handle = LoadLibraryA(library.c_str()); #elif defined(__APPLE__)