From 7984f24b1fcb9cc2785d4659d877ae2aaf377ac1 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Mon, 22 Feb 2016 16:46:21 +0100 Subject: [PATCH] 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 --- src/plugins/platforms/windows/accessible/iaccessible2.cpp | 2 -- 1 file changed, 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) {