From 4940016d4ec4ab8fb18e4f3ee2e384b772f3025d Mon Sep 17 00:00:00 2001 From: librelois <elois@ifee.fr> Date: Sat, 28 Apr 2018 17:24:32 +0200 Subject: [PATCH] [fix] windows wrong call --- lib/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/index.js b/lib/index.js index 54c7cc1..9009798 100644 --- a/lib/index.js +++ b/lib/index.js @@ -9,8 +9,8 @@ module.exports = { newFileInstance: (filePath, sigStock) => { const instance = Object.create(UnsafeWoTB) if (process.platform == 'win32') { - let bufferedPath = new Buffer(filePath,'ascii'); - instance.init(binding.new_unsafe_file_instance(bufferedPath, bufferedPath.length, sigStock)) + //let bufferedPath = new Buffer(filePath,'ascii'); + instance.init(binding.new_unsafe_file_instance(filePath, sigStock)) } else { instance.init(binding.new_unsafe_file_instance(filePath, sigStock)); } -- GitLab