summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/windows/accessible/iaccessible2.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@theqtcompany.com>2016-02-22 16:46:21 +0100
committerSimon Hausmann <simon.hausmann@theqtcompany.com>2016-02-26 08:24:31 +0000
commit7984f24b1fcb9cc2785d4659d877ae2aaf377ac1 (patch)
tree0db3555d84346c0ee4a6df8bd5e04ac70d53e08a /src/plugins/platforms/windows/accessible/iaccessible2.cpp
parentd1dfcc776fd3bf738d0c6e7125f5bb2c9aecc57e (diff)
Fix potential crash in QWindowsIA2Accessible::QueryInterface().
QWindowsIA2Accessible does not implement IAccessibleRelation (found when replacing the C-style casts by static_cast<>). Remove the corresponding branch. Task-number: QTBUG-50804 Change-Id: I80901634044f85e413666f34b91be2e6ad70da91 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
Diffstat (limited to 'src/plugins/platforms/windows/accessible/iaccessible2.cpp')
-rw-r--r--src/plugins/platforms/windows/accessible/iaccessible2.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/plugins/platforms/windows/accessible/iaccessible2.cpp b/src/plugins/platforms/windows/accessible/iaccessible2.cpp
index 9531272a07..e34c86158d 100644
--- a/src/plugins/platforms/windows/accessible/iaccessible2.cpp
+++ b/src/plugins/platforms/windows/accessible/iaccessible2.cpp
@@ -249,8 +249,6 @@ HRESULT STDMETHODCALLTYPE QWindowsIA2Accessible::QueryInterface(REFIID id, LPVOI
//*iface = (IAccessibleHypertext*)this;
} else if (id == IID_IAccessibleImage) {
//*iface = (IAccessibleImage*)this;
- } else if (id == IID_IAccessibleRelation) {
- *iface = (IAccessibleRelation*)this;
} else if (id == IID_IAccessibleTable) {
//*iface = (IAccessibleTable*)this; // not supported
} else if (id == IID_IAccessibleTable2) {