Avoid a refcount leak in QueryInterface when delegating.
[wine] / dlls / ole32 / errorinfo.c
1 /*
2  * ErrorInfo API
3  *
4  * Copyright 2000 Patrik Stridvall
5  *
6  */
7
8 #include "debugtools.h"
9 #include "oleauto.h"
10 #include "windef.h"
11 #include "winerror.h"
12
13 DEFAULT_DEBUG_CHANNEL(ole)
14
15 /***********************************************************************
16  *              CreateErrorInfo
17  */
18 HRESULT WINAPI CreateErrorInfo(ICreateErrorInfo **pperrinfo)
19 {
20   FIXME("(%p): stub:\n", pperrinfo);
21   
22   return S_OK;
23 }
24
25 /***********************************************************************
26  *              GetErrorInfo
27  */
28 HRESULT WINAPI GetErrorInfo(ULONG dwReserved, IErrorInfo **pperrinfo)
29 {
30   FIXME("(%ld, %p): stub:\n", dwReserved, pperrinfo);
31   
32   return S_OK;
33 }
34
35 /***********************************************************************
36  *              SetErrorInfo
37  */
38 HRESULT WINAPI SetErrorInfo(ULONG dwReserved, IErrorInfo *perrinfo)
39 {
40   FIXME("(%ld, %p): stub:\n", dwReserved, perrinfo);
41   
42   return S_OK;
43 }