Commit Graph

3 Commits (bcbca49da2515dd5b9bdc3d4c85c235a26fc9aa5)

Author SHA1 Message Date
Max Altgelt 7411b4e266
fix: use err from Syscall instead of calling GetLastError
Call() already returns the last error, see
https://pkg.go.dev/syscall?GOOS=windows#Proc.Call.

However, some code called GetLastError() afterwards, which is racy;
if the go routine switches threads between Call() and GetLastError(),
it may return a different error than expected, or possibly nil.
2 months ago
Vyacheslav Artemiev 3f241a0b08 feat(mem): Add windows commit stats
Closes Expose MemCommit info for Windows #1719
9 months ago
shirou 3caf443966 [mem][windows]: add ExWindows and implement VirualTotal/Avail
This commit fixes #1588. Thank you!
1 year ago