Commit Graph

3 Commits (7411b4e2661093ed0de704036f13f50300ffb775)

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.
1 week 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!
12 months ago