Skip to content

Conversation

@AZero13
Copy link
Contributor

@AZero13 AZero13 commented Dec 10, 2025

I know Microsoft is not consistent on this, but GetUserNameExW returns 0 on error.

@AZero13 AZero13 force-pushed the guard-wrong branch 2 times, most recently from 9b99a45 to 274e0ca Compare December 16, 2025 23:40
I know Microsoft is not consistent on this, but yes.
}

#if os(macOS)
#if canImport(Darwin) || os(Windows)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like when adding the Windows conditional here you also changed the macOS conditional to canImport(Darwin) - was there a reason for that? This will fail to build on platforms like iOS because ProcessInfo.userName is unavailable on those platforms

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants