From 75431d4141eff8db595141949623003ead79c6a6 Mon Sep 17 00:00:00 2001 From: AZero13 Date: Wed, 10 Dec 2025 18:55:35 -0500 Subject: [PATCH] Replace GetProcessId(GetCurrentProcess()) with GetCurrentProcessId() GetCurrentProcessId() is more direct and cleaner --- Sources/FoundationEssentials/ProcessInfo/ProcessInfo.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/FoundationEssentials/ProcessInfo/ProcessInfo.swift b/Sources/FoundationEssentials/ProcessInfo/ProcessInfo.swift index acb94408e..bcd36d08d 100644 --- a/Sources/FoundationEssentials/ProcessInfo/ProcessInfo.swift +++ b/Sources/FoundationEssentials/ProcessInfo/ProcessInfo.swift @@ -156,7 +156,7 @@ final class _ProcessInfo: Sendable { var processIdentifier: Int32 { #if os(Windows) - return Int32(bitPattern: UInt32(GetProcessId(GetCurrentProcess()))) + return Int32(bitPattern: UInt32(GetCurrentProcessId())) #else return Int32(getpid()) #endif