Commit Graph

3 Commits (34ac457e154c695cf35ed79ffa15eb0966c650bb)

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 weeks ago
Vyacheslav Artemiev 3f241a0b08 feat(mem): Add windows commit stats
Closes Expose MemCommit info for Windows #1719
8 months ago
shirou 3caf443966 [mem][windows]: add ExWindows and implement VirualTotal/Avail
This commit fixes #1588. Thank you!
1 year ago