-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Task/use get last p invoke error #52003
Conversation
0e515ed
to
b7abc3c
Compare
@danmoseley @stephentoub @jkotas Hooray, no? |
I would expect that there are more GetLastPInvokeError that can be replaced, but this is a fine incremental step. |
Hooray, yes! Next step would be for someone to change most of the Win32Exceptions we throw in Networking to the derived types that already exist there: Perhaps @KZedan is interested in that too. |
The failures are known issue #52031 |
@danmoseley @jkotas has mentioned there are more that can be changed so I will take another look at that first 😃 |
@KZedan Really appreciate your help here. Please don't hesitate to tag me or @elinor-fung if you hit any issues. |
Replacing GetLastWin32Error() with GetLastPInvokeError() as method name is more descriptive of usage.
Fixes #51648