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);