From 7faaa5d35d085801b9de612a5e34ceffb6fa3999 Mon Sep 17 00:00:00 2001 From: Nathanne Isip Date: Fri, 13 Dec 2024 23:54:06 +0800 Subject: [PATCH] Fixed implementation of VariableDeclarationExpression::loadNativeFunction() for Windows target. --- src/n8/ast/expression/VariableDeclarationExpression.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/n8/ast/expression/VariableDeclarationExpression.cpp b/src/n8/ast/expression/VariableDeclarationExpression.cpp index 45c9741..ae6e287 100644 --- a/src/n8/ast/expression/VariableDeclarationExpression.cpp +++ b/src/n8/ast/expression/VariableDeclarationExpression.cpp @@ -80,7 +80,7 @@ NativeFunction VariableDeclarationExpression::loadNativeFunction( else { #if defined(_WIN32) || defined(_WIN64) || defined(WIN32) || defined(WIN64) - std::filesystem::path libPath(library); + std::filesystem::path path(library); std::cout << "Loading DLLs from: " << path.parent_path().string() << std::endl; AddDllDirectory(path.parent_path().wstring().c_str());