Mise à jour de GitLab prévue ce dimanche 25 octobre 2020 à partir de 9h00 CEST | GitLab upgrade planned this Sunday 25rd of October 2020 from 9:00 AM CEST

Commit 4940016d authored by Éloïs's avatar Éloïs

[fix] windows wrong call

parent 0f40a592
Pipeline #2021 canceled with stage
in 1 minute and 27 seconds
......@@ -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));
}
......
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