We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 52d3903 commit 3796a11Copy full SHA for 3796a11
src/core/standard/fs/watch.zig
@@ -586,7 +586,7 @@ pub const FileSystemWatcher = struct {
586
};
587
var attr = std.os.windows.OBJECT_ATTRIBUTES{
588
.Length = @sizeOf(std.os.windows.OBJECT_ATTRIBUTES),
589
- .RootDirectory = self.dir.fd,
+ .RootDirectory = if (std.fs.path.isAbsoluteWindowsW(ptr)) null else self.dir.fd,
590
.Attributes = 0,
591
.ObjectName = &nt_name,
592
.SecurityDescriptor = null,
0 commit comments