-
Notifications
You must be signed in to change notification settings - Fork 41
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
implicit casting workaround #744
base: main
Are you sure you want to change the base?
Conversation
Please fill out the PR template for each PR. |
published/external/xdp/status.h
Outdated
@@ -25,11 +25,14 @@ typedef NTSTATUS XDP_STATUS; | |||
|
|||
typedef HRESULT XDP_STATUS; | |||
|
|||
#define SUCCESS_HRESULT_FROM_WIN32(x) \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can't do this, because other code does HRESULT_FROM_WIN32(GetLastError())
and would produce inconsistent results. What are you trying to achieve here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just copied from MsQuic. trying to resolve implicit cast. I'm not sure how to resolve other than this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think your original solution was fine, other than a comment was needed.
This reverts commit 244f0e9.
Description
Fixes #741.
Implicit cast
Testing
CI
Documentation
N/A
Installation
N/A