-
Notifications
You must be signed in to change notification settings - Fork 120
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
_Outptr_result_maybenull_
and variants interpreted incorrectly
#1005
Comments
_Outptr_result_maybenull_
and _COM_Outptr_result_maybenull_
interpreted incorrectly_Outptr_result_maybenull_
and variants interpreted incorrectly
From
|
This would help microsoft/CsWin32#130 as well |
XmlLite's |
|
* Fixed #1005. * Added missed API to the baseline. * Detect _Maybenull_ as [In][Optional]. * Support overloads in winmd diffing tool.
Thanks! Can you publish another build and I'll take it for a spin. |
Yes it's published now. |
Thanks! |
Like a few previous issues, this SAL annotation denotes that the result may be null, not that the parameter itself is optional. For example,
ID2D1DeviceContext::GetTarget
is described as follows:But this parameter is not in fact optional. There are also plenty of other parameters with these annotations being interpreted incorrectly. These include:
_Outptr_result_maybenull_
_Outptr_result_buffer_maybenull_
_COM_Outptr_result_maybenull_
There may well be others.
The text was updated successfully, but these errors were encountered: