Get rid of E_UNSPEC non-standard error value.

This commit is contained in:
Filip Navara 2004-04-12 22:02:37 +00:00 committed by Alexandre Julliard
parent dc4535f91a
commit f379a1dccf
4 changed files with 3 additions and 9 deletions

View File

@ -925,7 +925,7 @@ static HRESULT WINAPI DefaultHandler_GetMoniker(
}
return E_UNSPEC;
return E_FAIL;
}
/************************************************************************

View File

@ -708,10 +708,8 @@ HRESULT WINAPI FileMonikerImpl_BindToStorage(IMoniker* iface,
}
else
if ( (IsEqualIID(&IID_IStream, riid)) || (IsEqualIID(&IID_ILockBytes, riid)) )
return E_UNSPEC;
return E_FAIL;
else
return E_NOINTERFACE;
}
else {

View File

@ -220,7 +220,7 @@ static HRESULT WINAPI WBOOBJ_GetMoniker(LPOLEOBJECT iface, DWORD dwAssign,
DWORD dwWhichMoniker, LPMONIKER *ppmk)
{
FIXME("stub (%p, %ld, %ld, %p)\n", iface, dwAssign, dwWhichMoniker, ppmk);
return E_UNSPEC;
return E_FAIL;
}
/************************************************************************

View File

@ -1546,10 +1546,6 @@
#define E_POINTER _HRESULT_TYPEDEF_(0x80004003L)
#define E_ABORT _HRESULT_TYPEDEF_(0x80004004L)
#define E_FAIL _HRESULT_TYPEDEF_(0x80004005L)
/* FIXME: E_UNSPEC is not a standard value but it is used by
* FileMoniker, IOleLink and DoDragDrop as a return value.
*/
#define E_UNSPEC E_FAIL
#define CO_E_INIT_TLS _HRESULT_TYPEDEF_(0x80004006L)