Invalid Remark on GetFunctionInfo2
- Dominant language
- No language data
- Stars
- 4.8k
- Forks
- 6.1k
- Avg merge
- 19h 10m
- Merged PRs (30d)
- 268
Description
In the Remarks, the following section is not correct:
_After GetFunctionInfo2 returns, you must verify that the typeArgs buffer was large enough to contain all the ClassID values. To do this, compare the value that pcTypeArgs points to with the value of the cTypeArgs parameter. If pcTypeArgs points to a value that is larger than cTypeArgs divided by the size of a ClassID value, allocate a larger pcTypeArgs buffer, update cTypeArgs with the new, larger size, and call GetFunctionInfo2 again._
cTypeArgs MUST be set to 0 in order to get the total number of generic parameters (if any). If one pass a value that is less than the total count, *pcTypeArgs will contain the same value as the passed cTypeArgs. And remove "_Alternatively_" to the next section because this is what MUST be done
I validated the behavior in .NET Framework and .NET Core
---
#### Document Details
⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*
* ID: 0d7e4659-c155-7287-8fdd-e924dd35fc79
* Version Independent ID: 3052e440-9c26-2f8d-2aff-937df8df88ef
* Content: [ICorProfilerInfo2::GetFunctionInfo2 Method](https://docs.microsoft.com/en-us/dotnet/framework/unmanaged-api/profiling/icorprofilerinfo2-getfunctioninfo2-method)
* Content Source: [docs/framework/unmanaged-api/profiling/icorprofilerinfo2-getfunctioninfo2-method.md](https://github.com/dotnet/docs/blob/main/docs/framework/unmanaged-api/profiling/icorprofilerinfo2-getfunctioninfo2-method.md)
* Product: **dotnet-framework**
* GitHub Login: @tommcdon
* Microsoft Alias: **tommcdon**
Contributor guide
Assessment
This issue has not been assessed yet.