Commit 3c24320f authored by bfulgham@webkit.org's avatar bfulgham@webkit.org

009-06-16 Brent Fulgham <bfulgham@gmail.com>

        Reviewed by Darin Adler.

        Use consistent GUID comparison functions.
        https://bugs.webkit.org/show_bug.cgi?id=26427


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@44723 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent abb1b1b2
2009-06-16 Brent Fulgham <bfulgham@gmail.com>
Reviewed by Darin Adler.
Use consistent GUID comparison functions.
https://bugs.webkit.org/show_bug.cgi?id=26427
* platform/win/WCDataObject.cpp:
(WebCore::WCDataObject::QueryInterface):
2009-06-16 Xan Lopez <xlopez@igalia.com>
Reviewed by Gustavo Noronha.
......
......@@ -74,8 +74,7 @@ WCEnumFormatEtc::WCEnumFormatEtc(const Vector<FORMATETC*>& formats)
STDMETHODIMP WCEnumFormatEtc::QueryInterface(REFIID riid, void** ppvObject)
{
*ppvObject = 0;
if (IsEqualIID(riid, IID_IUnknown) ||
IsEqualIID(riid, IID_IEnumFORMATETC)) {
if (IsEqualIID(riid, IID_IUnknown) || IsEqualIID(riid, IID_IEnumFORMATETC)) {
*ppvObject = this;
AddRef();
return S_OK;
......@@ -178,8 +177,10 @@ WCDataObject::~WCDataObject()
STDMETHODIMP WCDataObject::QueryInterface(REFIID riid,void** ppvObject)
{
*ppvObject = 0;
if (IID_IUnknown==riid || IID_IDataObject==riid)
if (IsEqualIID(riid, IID_IUnknown) ||
IsEqualIID(riid, IID_IDataObject)) {
*ppvObject=this;
}
if (*ppvObject) {
AddRef();
return S_OK;
......
2009-06-16 Brent Fulgham <bfulgham@gmail.com>
Reviewed by Darin Adler.
Use consistent Windows GUID Comparison Functions.
https://bugs.webkit.org/show_bug.cgi?id=26427.
* WebView.cpp:
(EnumTextMatches::QueryInterface):
== Rolled over to ChangeLog-2009-06-16 ==
......@@ -5213,7 +5213,7 @@ public:
virtual HRESULT STDMETHODCALLTYPE QueryInterface(REFIID riid, void** ppv)
{
if (riid == IID_IUnknown || riid == IID_IEnumTextMatches) {
if (IsEqualGUID(riid, IID_IUnknown) || IsEqualGUID(riid, IID_IEnumTextMatches)) {
*ppv = this;
AddRef();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment