feat(编译脚本): 添加编译脚本

This commit is contained in:
2026-01-28 21:28:51 +08:00
parent fddd1b8084
commit 8bbcf36fb5
2 changed files with 16 additions and 1 deletions
+1 -1
View File
@@ -463,7 +463,7 @@ func (s *SymFS) watch() {
for {
info := (*FileNotifyInformation)(unsafe.Pointer(&buf[offset]))
length := info.FileNameLength / 2
nameSlice := (*[1 << 30]uint16)(unsafe.Pointer(&info.FileName[0]))[:length:length]
nameSlice := (*[1 << 16]uint16)(unsafe.Pointer(&info.FileName[0]))[:length:length]
fileName := syscall.UTF16ToString(nameSlice)
fileName = strings.ReplaceAll(fileName, "\\", "/")
fullPath := "/" + fileName