microsoft / microsoft/Windows-classic-samples
GdiTextRenderer::QueryInterface does not increment the reference count on the returned object
Open
Nobody has claimed this yet.
- Dominant language
- No language data
- Stars
- 5.7k
- Forks
- 3.3k
- PR merge metrics
- No merged PRs in 30d
Description
If I understand correctly, QueryInterface is supposed to do this. But GdiTextRenderer::QueryInterface does not. Is this a bug?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Open the linked GdiTextRenderer.cpp section and inspect GdiTextRenderer::QueryInterface against the stated QueryInterface reference-count requirement. Confirm the returned object increments its reference count, then verify the DirectWrite GDI interop sample still behaves correctly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- computer-graphics, desktop-dev
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 42/100