Skip to content

Conversation

@inqrphl
Copy link
Contributor

@inqrphl inqrphl commented Jan 23, 2026

Revert setDrives function to its older state. Instead of using the win32 api GetLogicalDriveStringsW with helper function, use the gopsutil disk.Partitions() .

It calls the same underlying win32 api call on windows, but seems to parse the returned buffer better. Helper function could return empty strings, leading to a panic.

@sni sni merged commit 2d12117 into main Jan 23, 2026
133 checks passed
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.

3 participants