From 5d26dc8d73849091e3a44b13ad8ad9d4fa4d38e3 Mon Sep 17 00:00:00 2001 From: Nathanne Isip Date: Fri, 13 Dec 2024 19:05:25 +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 ac95dc1..9d6b3aa 100644 --- a/src/n8/ast/expression/VariableDeclarationExpression.cpp +++ b/src/n8/ast/expression/VariableDeclarationExpression.cpp @@ -100,7 +100,7 @@ NativeFunction VariableDeclarationExpression::loadNativeFunction( MultiByteToWideChar( CP_UTF8, 0, parentPathStr, - -1, pwstr, size + -1, searchPath, size ); AddDllDirectory(searchPath);