Browse Source

core: Append filename properly in dlopen on windows

Fixes simple/test-module-loading on win32
v0.10.0-release
isaacs 12 years ago
parent
commit
6076a25e80
  1. 2
      src/node.cc

2
src/node.cc

@ -1893,7 +1893,7 @@ Handle<Value> DLOpen(const v8::Arguments& args) {
Local<String> 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));
}

Loading…
Cancel
Save