Skip to content
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

Merged
merged 2 commits into from
Apr 29, 2021

Conversation

KZedan
Copy link
Contributor

@KZedan KZedan commented Apr 28, 2021

Replacing GetLastWin32Error() with GetLastPInvokeError() as method name is more descriptive of usage.

Fixes #51648

@dnfadmin
Copy link

dnfadmin commented Apr 28, 2021

CLA assistant check
All CLA requirements met.

@KZedan KZedan force-pushed the Task/Use_GetLastPInvokeError branch from 0e515ed to b7abc3c Compare April 29, 2021 19:25
@AaronRobinsonMSFT
Copy link
Member

@danmoseley @stephentoub @jkotas Hooray, no?

@jkotas
Copy link
Member

jkotas commented Apr 29, 2021

I would expect that there are more GetLastPInvokeError that can be replaced, but this is a fine incremental step.

@danmoseley
Copy link
Member

danmoseley commented Apr 29, 2021

@danmoseley @stephentoub @jkotas Hooray, no?

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:
#26227 (comment)

Perhaps @KZedan is interested in that too.

@jkotas
Copy link
Member

jkotas commented Apr 29, 2021

The failures are known issue #52031

@KZedan
Copy link
Contributor Author

KZedan commented Apr 30, 2021

@danmoseley @jkotas has mentioned there are more that can be changed so I will take another look at that first 😃

@AaronRobinsonMSFT
Copy link
Member

@KZedan Really appreciate your help here. Please don't hesitate to tag me or @elinor-fung if you hit any issues.

@karelz karelz added this to the 6.0.0 milestone May 20, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Jun 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use Marshal.GetLastPInvokeError instead of Marshal.GetLastWin32Error in NETCoreApp
6 participants