crypt32: Use consistent error checking.