From 0dcedcb7bbe62c5f865417bcd011990b01f023eb 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)