From 0dbbab4aa1bb713e295e007406c2370f0e806892 Mon Sep 17 00:00:00 2001 From: AZero13 Date: Sun, 28 Dec 2025 14:33:38 -0500 Subject: [PATCH] Fix HRESULT_FACILITY HRESULT_FACILITY is >> 16 & 0x1fff, not << --- Sources/System/FilePath/FilePathWindows.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/System/FilePath/FilePathWindows.swift b/Sources/System/FilePath/FilePathWindows.swift index 2226816..875c1c6 100644 --- a/Sources/System/FilePath/FilePathWindows.swift +++ b/Sources/System/FilePath/FilePathWindows.swift @@ -517,7 +517,7 @@ fileprivate func HRESULT_CODE(_ hr: HRESULT) -> DWORD { @inline(__always) fileprivate func HRESULT_FACILITY(_ hr: HRESULT) -> DWORD { - DWORD(hr << 16) & 0x1fff + DWORD(hr >> 16) & 0x1fff } @inline(__always)