Skip to content
Snippets Groups Projects
Commit 4940016d authored by Éloïs's avatar Éloïs
Browse files

[fix] windows wrong call

parent 0f40a592
No related branches found
No related tags found
No related merge requests found
Pipeline #
...@@ -9,8 +9,8 @@ module.exports = { ...@@ -9,8 +9,8 @@ module.exports = {
newFileInstance: (filePath, sigStock) => { newFileInstance: (filePath, sigStock) => {
const instance = Object.create(UnsafeWoTB) const instance = Object.create(UnsafeWoTB)
if (process.platform == 'win32') { if (process.platform == 'win32') {
let bufferedPath = new Buffer(filePath,'ascii'); //let bufferedPath = new Buffer(filePath,'ascii');
instance.init(binding.new_unsafe_file_instance(bufferedPath, bufferedPath.length, sigStock)) instance.init(binding.new_unsafe_file_instance(filePath, sigStock))
} else { } else {
instance.init(binding.new_unsafe_file_instance(filePath, sigStock)); instance.init(binding.new_unsafe_file_instance(filePath, sigStock));
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment