Commit b88b6e24 authored by Fabrice Marsaud's avatar Fabrice Marsaud

Temporary fixes

parent 08003d55
......@@ -88,10 +88,10 @@ var facilities = {
"code":"FACILITY_SECURITY"
, "message":"The source of the error code is the Security API layer."
}
, 9:{
"code":"FACILITY_SSPI"
, "message":"The source of the error code is the Security API layer."
}
// , 9:{
// "code":"FACILITY_SSPI"
// , "message":"The source of the error code is the Security API layer."
// }
, 10:{
"code":"FACILITY_CONTROL"
, "message":"The source of the error code is the control mechanism."
......@@ -292,10 +292,10 @@ var ntStatus = {
"code":"STATUS_ABANDONED"
, "message":"The caller attempted to wait for a mutex that has been abandoned."
}
, "0x00000080":{
"code":"STATUS_ABANDONED_WAIT_0"
, "message":"The caller attempted to wait for a mutex that has been abandoned."
}
// , "0x00000080":{
// "code":"STATUS_ABANDONED_WAIT_0"
// , "message":"The caller attempted to wait for a mutex that has been abandoned."
// }
, "0x000000BF":{
"code":"STATUS_ABANDONED_WAIT_63"
, "message":"The caller attempted to wait for a mutex that has been abandoned."
......@@ -7016,10 +7016,10 @@ var ntStatus = {
"code":"STATUS_FWP_TOO_MANY_BOOTTIME_FILTERS"
, "message":"The maximum number of boot-time filters has been reached."
}
, "0xC0220018":{
"code":"STATUS_FWP_TOO_MANY_CALLOUTS"
, "message":"The maximum number of callouts has been reached."
}
// , "0xC0220018":{
// "code":"STATUS_FWP_TOO_MANY_CALLOUTS"
// , "message":"The maximum number of callouts has been reached."
// }
, "0xC0220019":{
"code":"STATUS_FWP_NOTIFICATION_DROPPED"
, "message":"A notification could not be delivered because a message queue has reached maximum capacity."
......@@ -18240,4 +18240,4 @@ var win32ErrorCodes = {
"code":"ERROR_SYSTEM_DEVICE_NOT_FOUND"
, "message":"The requested system device cannot be found."
}
}
\ No newline at end of file
}
......@@ -38,6 +38,16 @@ SMB2Connection.requireConnect = function(method){
connect(connection, function(err){
// process the cb
var cb = args.pop();
if (typeof cb !== 'function') {
args.push(cb)
cb = function (err) {
if (err) {
if (!err instanceof Error) {
err = new Error(String(err))
}
throw err
}
}
cb = scheduleAutoClose(connection, cb);
args.push(cb);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment