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

Change to GetLastPInvokeError where possible #73980

Merged
merged 3 commits into from
Aug 18, 2022

Conversation

danmoseley
Copy link
Member

We added Marshal.GetLastPInvokeError() a while back, and made GetLastWin32Error() an alias for it, in order to reduce the use of "Win32" in non Windows contexts.

This now uses it whereever it's available. No functional change.

@ghost
Copy link

ghost commented Aug 16, 2022

Tagging subscribers to this area: @dotnet/area-meta
See info in area-owners.md if you want to be subscribed.

Issue Details

We added Marshal.GetLastPInvokeError() a while back, and made GetLastWin32Error() an alias for it, in order to reduce the use of "Win32" in non Windows contexts.

This now uses it whereever it's available. No functional change.

Author: danmoseley
Assignees: -
Labels:

area-Meta

Milestone: -

Copy link
Member

@stephentoub stephentoub left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM if it builds, but I expect it's going to fail... some of these projects target pre-.NET 6, where GetLastPInvokeError was added.

@danmoseley
Copy link
Member Author

Hmm, I did "build libs -allconfigurations".. is there more? We will see.

@danmoseley
Copy link
Member Author

Oh! Tests too.

@danmoseley danmoseley closed this Aug 16, 2022
@danmoseley danmoseley reopened this Aug 16, 2022
@danmoseley
Copy link
Member Author

@stephentoub looks like it's going to build - do you want to sign off?

@danmoseley danmoseley merged commit 2327a36 into dotnet:main Aug 18, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Sep 17, 2022
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.

2 participants