Make LoadTypeLib stub return failure instead of success.

This commit is contained in:
Francis Beaudet 1999-01-23 11:53:21 +00:00 committed by Alexandre Julliard
parent 688c565880
commit 4f85ca442c
1 changed files with 9 additions and 2 deletions

View File

@ -108,6 +108,10 @@ HRESULT WINAPI LoadTypeLib16(
void * *pptLib) /* [out] Pointer to pointer to loaded type library */
{
FIXME(ole, "('%s',%p): stub\n",debugstr_w((LPWSTR)szFile),pptLib);
if (pptLib!=0)
*pptLib=0;
return E_FAIL;
}
@ -127,8 +131,11 @@ HRESULT WINAPI LoadTypeLib32(
void * *pptLib) /* [out] Pointer to pointer to loaded type library */
{
FIXME(ole, "('%s',%p): stub\n",debugstr_w(szFile),pptLib);
(long *)pptLib=0x123;
return S_OK; /* fixme: pretend everything is OK*/
if (pptLib!=0)
*pptLib=0;
return E_FAIL;
}
/******************************************************************************