Skip to content

Conversation

darinf
Copy link
Contributor

@darinf darinf commented Jul 31, 2023

Use GetAllUsersProfileDirectoryW and GetProfilesDirectoryW instead of hardcoding paths.

Previously, the known locations were treated as UNC paths, which would typically fail to be read after ~5 second timeout.

Also fixes memory leak of username string.

Use GetAllUsersProfileDirectoryW and GetProfilesDirectoryW instead of
hardcoding paths.

Previously, the known locations were treated as UNC paths, which would
typically fail to be read after ~5 second timeout.
@compnerd
Copy link
Member

@swift-ci please test

@compnerd
Copy link
Member

@swift-ci please test Linux platform

@compnerd
Copy link
Member

@swift-ci please test macOS platform

@compnerd
Copy link
Member

@swift-ci please test Linux platform

@compnerd
Copy link
Member

@swift-ci please clean test macOS platform

@compnerd
Copy link
Member

compnerd commented Aug 1, 2023

@swift-ci please test macOS platform

@compnerd
Copy link
Member

compnerd commented Aug 2, 2023

This is a windows only path change, and the failure is an infrastructure failure on the macOS side.

@compnerd compnerd merged commit 8ff7ba3 into swiftlang:main Aug 2, 2023
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