From 6076a25e80e1b294a62a0efe341bcc29b2eaa63b Mon Sep 17 00:00:00 2001 From: isaacs Date: Thu, 7 Mar 2013 15:14:22 -0800 Subject: [PATCH] core: Append filename properly in dlopen on windows Fixes simple/test-module-loading on win32 --- src/node.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node.cc b/src/node.cc index 6388a11c91..e17baec825 100644 --- a/src/node.cc +++ b/src/node.cc @@ -1893,7 +1893,7 @@ Handle DLOpen(const v8::Arguments& args) { Local errmsg = String::New(uv_dlerror(&lib)); #ifdef _WIN32 // Windows needs to add the filename into the error message - errmsg = String::Concat(errmsg, args[0]->ToString()); + errmsg = String::Concat(errmsg, args[1]->ToString()); #endif return ThrowException(Exception::Error(errmsg)); }