-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Open
Description
If I understand correctly, QueryInterface is supposed to do this. But GdiTextRenderer::QueryInterface does not. Is this a bug?
Windows-classic-samples/Samples/Win7Samples/multimedia/DirectWrite/GdiInterop/GdiTextRenderer.cpp
Lines 261 to 285 in 2b94df5
| STDMETHODIMP GdiTextRenderer::QueryInterface( | |
| IID const& riid, | |
| void** ppvObject | |
| ) | |
| { | |
| if (__uuidof(IDWriteTextRenderer) == riid) | |
| { | |
| *ppvObject = this; | |
| } | |
| else if (__uuidof(IDWritePixelSnapping) == riid) | |
| { | |
| *ppvObject = this; | |
| } | |
| else if (__uuidof(IUnknown) == riid) | |
| { | |
| *ppvObject = this; | |
| } | |
| else | |
| { | |
| *ppvObject = NULL; | |
| return E_FAIL; | |
| } | |
| return S_OK; | |
| } |
Metadata
Metadata
Assignees
Labels
No labels