From 6e34e6e90f3ea6a18101395afc7cf5fe86c427e8 Mon Sep 17 00:00:00 2001 From: zecke Date: Tue, 27 Jan 2004 19:00:49 +0000 Subject: return QS_FALSE if interface is not implemented --- diff --git a/noncore/applets/autorotateapplet/autorotateimpl.cpp b/noncore/applets/autorotateapplet/autorotateimpl.cpp index 01d8a01..1b15c6d 100644 --- a/noncore/applets/autorotateapplet/autorotateimpl.cpp +++ b/noncore/applets/autorotateapplet/autorotateimpl.cpp @@ -28,7 +28,8 @@ QRESULT AutoRotateImpl::queryInterface( const QUuid &uuid, QUnknownInterface **i *iface = this; } else if ( uuid == IID_TaskbarApplet ) { *iface = this; - } + } else + return QS_FALSE; if ( *iface ) { (*iface)->addRef(); diff --git a/noncore/applets/notesapplet/notesappletimpl.cpp b/noncore/applets/notesapplet/notesappletimpl.cpp index 0526bad..93de433 100644 --- a/noncore/applets/notesapplet/notesappletimpl.cpp +++ b/noncore/applets/notesapplet/notesappletimpl.cpp @@ -38,6 +38,8 @@ QRESULT NotesAppletImpl::queryInterface( const QUuid &uuid, QUnknownInterface ** *iface = this; else if ( uuid == IID_TaskbarApplet ) *iface = this; + else + return QS_FALSE; if ( *iface ) (*iface)->addRef(); diff --git a/noncore/applets/wirelessapplet/wirelessappletimpl.cpp b/noncore/applets/wirelessapplet/wirelessappletimpl.cpp index eb00459..8b7afcf 100644 --- a/noncore/applets/wirelessapplet/wirelessappletimpl.cpp +++ b/noncore/applets/wirelessapplet/wirelessappletimpl.cpp @@ -50,7 +50,9 @@ QRESULT WirelessAppletImpl::queryInterface( const QUuid &uuid, QUnknownInterface *iface = this; else if ( uuid == IID_TaskbarApplet ) *iface = this; - + else + return QS_FALSE; + if ( *iface ) (*iface)->addRef(); return QS_OK; -- cgit v0.9.0.2