mirror of
https://github.com/golang/sys.git
synced 2026-02-09 04:06:04 +03:00
According to [1], this function returns NULL when it errors, rather than INVALID_HANDLE_VALUE, which other Win32 functions return. Quick reversing indicates that [1] is correct, as there's a xor eax, eax in the error paths of the function just before jumping to the epilogue. [1] https://docs.microsoft.com/en-us/windows/win32/api/wincrypt/nf-wincrypt-certopenstore#return-value