Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
9a084ab6
Commit
9a084ab6
authored
Nov 16, 2016
by
Nikolay Sivov
Committed by
Alexandre Julliard
Nov 16, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oledb32: Use better naming for IErrorRecords implementation structure.
Signed-off-by:
Nikolay Sivov
<
nsivov@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
cb11d670
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
40 deletions
+40
-40
errorinfo.c
dlls/oledb32/errorinfo.c
+40
-40
No files found.
dlls/oledb32/errorinfo.c
View file @
9a084ab6
...
...
@@ -46,7 +46,7 @@ struct ErrorEntry
DWORD
lookupID
;
};
typedef
struct
ErrorInfoImpl
typedef
struct
errorrecords
{
IErrorInfo
IErrorInfo_iface
;
IErrorRecords
IErrorRecords_iface
;
...
...
@@ -55,21 +55,21 @@ typedef struct ErrorInfoImpl
struct
ErrorEntry
*
records
;
unsigned
int
allocated
;
unsigned
int
count
;
}
ErrorInfoImpl
;
}
errorrecords
;
static
inline
ErrorInfoImpl
*
impl_from_IErrorInfo
(
IErrorInfo
*
iface
)
static
inline
errorrecords
*
impl_from_IErrorInfo
(
IErrorInfo
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
ErrorInfoImpl
,
IErrorInfo_iface
);
return
CONTAINING_RECORD
(
iface
,
errorrecords
,
IErrorInfo_iface
);
}
static
inline
ErrorInfoImpl
*
impl_from_IErrorRecords
(
IErrorRecords
*
iface
)
static
inline
errorrecords
*
impl_from_IErrorRecords
(
IErrorRecords
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
ErrorInfoImpl
,
IErrorRecords_iface
);
return
CONTAINING_RECORD
(
iface
,
errorrecords
,
IErrorRecords_iface
);
}
static
HRESULT
WINAPI
IErrorInfoImpl
_QueryInterface
(
IErrorInfo
*
iface
,
REFIID
riid
,
void
**
ppvoid
)
static
HRESULT
WINAPI
errorrecords
_QueryInterface
(
IErrorInfo
*
iface
,
REFIID
riid
,
void
**
ppvoid
)
{
ErrorInfoImpl
*
This
=
impl_from_IErrorInfo
(
iface
);
errorrecords
*
This
=
impl_from_IErrorInfo
(
iface
);
TRACE
(
"(%p)->(%s, %p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ppvoid
);
*
ppvoid
=
NULL
;
...
...
@@ -93,16 +93,16 @@ static HRESULT WINAPI IErrorInfoImpl_QueryInterface(IErrorInfo* iface, REFIID ri
return
E_NOINTERFACE
;
}
static
ULONG
WINAPI
IErrorInfoImpl
_AddRef
(
IErrorInfo
*
iface
)
static
ULONG
WINAPI
errorrecords
_AddRef
(
IErrorInfo
*
iface
)
{
ErrorInfoImpl
*
This
=
impl_from_IErrorInfo
(
iface
);
errorrecords
*
This
=
impl_from_IErrorInfo
(
iface
);
TRACE
(
"(%p)->%u
\n
"
,
This
,
This
->
ref
);
return
InterlockedIncrement
(
&
This
->
ref
);
}
static
ULONG
WINAPI
IErrorInfoImpl
_Release
(
IErrorInfo
*
iface
)
static
ULONG
WINAPI
errorrecords
_Release
(
IErrorInfo
*
iface
)
{
ErrorInfoImpl
*
This
=
impl_from_IErrorInfo
(
iface
);
errorrecords
*
This
=
impl_from_IErrorInfo
(
iface
);
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p)->%u
\n
"
,
This
,
ref
+
1
);
...
...
@@ -122,9 +122,9 @@ static ULONG WINAPI IErrorInfoImpl_Release(IErrorInfo* iface)
return
ref
;
}
static
HRESULT
WINAPI
IErrorInfoImpl
_GetGUID
(
IErrorInfo
*
iface
,
GUID
*
guid
)
static
HRESULT
WINAPI
errorrecords
_GetGUID
(
IErrorInfo
*
iface
,
GUID
*
guid
)
{
ErrorInfoImpl
*
This
=
impl_from_IErrorInfo
(
iface
);
errorrecords
*
This
=
impl_from_IErrorInfo
(
iface
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
guid
);
...
...
@@ -136,9 +136,9 @@ static HRESULT WINAPI IErrorInfoImpl_GetGUID(IErrorInfo* iface, GUID *guid)
return
S_OK
;
}
static
HRESULT
WINAPI
IErrorInfoImpl
_GetSource
(
IErrorInfo
*
iface
,
BSTR
*
source
)
static
HRESULT
WINAPI
errorrecords
_GetSource
(
IErrorInfo
*
iface
,
BSTR
*
source
)
{
ErrorInfoImpl
*
This
=
impl_from_IErrorInfo
(
iface
);
errorrecords
*
This
=
impl_from_IErrorInfo
(
iface
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
source
);
...
...
@@ -150,9 +150,9 @@ static HRESULT WINAPI IErrorInfoImpl_GetSource(IErrorInfo* iface, BSTR *source)
return
E_FAIL
;
}
static
HRESULT
WINAPI
IErrorInfoImpl
_GetDescription
(
IErrorInfo
*
iface
,
BSTR
*
description
)
static
HRESULT
WINAPI
errorrecords
_GetDescription
(
IErrorInfo
*
iface
,
BSTR
*
description
)
{
ErrorInfoImpl
*
This
=
impl_from_IErrorInfo
(
iface
);
errorrecords
*
This
=
impl_from_IErrorInfo
(
iface
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
description
);
...
...
@@ -164,9 +164,9 @@ static HRESULT WINAPI IErrorInfoImpl_GetDescription(IErrorInfo* iface, BSTR *des
return
E_FAIL
;
}
static
HRESULT
WINAPI
IErrorInfoImpl
_GetHelpFile
(
IErrorInfo
*
iface
,
BSTR
*
helpfile
)
static
HRESULT
WINAPI
errorrecords
_GetHelpFile
(
IErrorInfo
*
iface
,
BSTR
*
helpfile
)
{
ErrorInfoImpl
*
This
=
impl_from_IErrorInfo
(
iface
);
errorrecords
*
This
=
impl_from_IErrorInfo
(
iface
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
helpfile
);
...
...
@@ -178,9 +178,9 @@ static HRESULT WINAPI IErrorInfoImpl_GetHelpFile(IErrorInfo* iface, BSTR *helpfi
return
E_FAIL
;
}
static
HRESULT
WINAPI
IErrorInfoImpl
_GetHelpContext
(
IErrorInfo
*
iface
,
DWORD
*
context
)
static
HRESULT
WINAPI
errorrecords
_GetHelpContext
(
IErrorInfo
*
iface
,
DWORD
*
context
)
{
ErrorInfoImpl
*
This
=
impl_from_IErrorInfo
(
iface
);
errorrecords
*
This
=
impl_from_IErrorInfo
(
iface
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
context
);
...
...
@@ -194,38 +194,38 @@ static HRESULT WINAPI IErrorInfoImpl_GetHelpContext(IErrorInfo* iface, DWORD *co
static
const
IErrorInfoVtbl
ErrorInfoVtbl
=
{
IErrorInfoImpl
_QueryInterface
,
IErrorInfoImpl
_AddRef
,
IErrorInfoImpl
_Release
,
IErrorInfoImpl
_GetGUID
,
IErrorInfoImpl
_GetSource
,
IErrorInfoImpl
_GetDescription
,
IErrorInfoImpl
_GetHelpFile
,
IErrorInfoImpl
_GetHelpContext
errorrecords
_QueryInterface
,
errorrecords
_AddRef
,
errorrecords
_Release
,
errorrecords
_GetGUID
,
errorrecords
_GetSource
,
errorrecords
_GetDescription
,
errorrecords
_GetHelpFile
,
errorrecords
_GetHelpContext
};
static
HRESULT
WINAPI
errorrec_QueryInterface
(
IErrorRecords
*
iface
,
REFIID
riid
,
void
**
ppvObject
)
{
ErrorInfoImpl
*
This
=
impl_from_IErrorRecords
(
iface
);
errorrecords
*
This
=
impl_from_IErrorRecords
(
iface
);
return
IErrorInfo_QueryInterface
(
&
This
->
IErrorInfo_iface
,
riid
,
ppvObject
);
}
static
ULONG
WINAPI
WINAPI
errorrec_AddRef
(
IErrorRecords
*
iface
)
{
ErrorInfoImpl
*
This
=
impl_from_IErrorRecords
(
iface
);
errorrecords
*
This
=
impl_from_IErrorRecords
(
iface
);
return
IErrorInfo_AddRef
(
&
This
->
IErrorInfo_iface
);
}
static
ULONG
WINAPI
WINAPI
errorrec_Release
(
IErrorRecords
*
iface
)
{
ErrorInfoImpl
*
This
=
impl_from_IErrorRecords
(
iface
);
errorrecords
*
This
=
impl_from_IErrorRecords
(
iface
);
return
IErrorInfo_Release
(
&
This
->
IErrorInfo_iface
);
}
static
HRESULT
WINAPI
errorrec_AddErrorRecord
(
IErrorRecords
*
iface
,
ERRORINFO
*
pErrorInfo
,
DWORD
dwLookupID
,
DISPPARAMS
*
pdispparams
,
IUnknown
*
punkCustomError
,
DWORD
dwDynamicErrorID
)
{
ErrorInfoImpl
*
This
=
impl_from_IErrorRecords
(
iface
);
errorrecords
*
This
=
impl_from_IErrorRecords
(
iface
);
struct
ErrorEntry
*
entry
;
TRACE
(
"(%p)->(%p %d %p %p %d)
\n
"
,
This
,
pErrorInfo
,
dwLookupID
,
pdispparams
,
punkCustomError
,
dwDynamicErrorID
);
...
...
@@ -269,7 +269,7 @@ static HRESULT WINAPI errorrec_AddErrorRecord(IErrorRecords *iface, ERRORINFO *p
static
HRESULT
WINAPI
errorrec_GetBasicErrorInfo
(
IErrorRecords
*
iface
,
ULONG
index
,
ERRORINFO
*
info
)
{
ErrorInfoImpl
*
This
=
impl_from_IErrorRecords
(
iface
);
errorrecords
*
This
=
impl_from_IErrorRecords
(
iface
);
TRACE
(
"(%p)->(%u %p)
\n
"
,
This
,
index
,
info
);
...
...
@@ -287,7 +287,7 @@ static HRESULT WINAPI errorrec_GetBasicErrorInfo(IErrorRecords *iface, ULONG ind
static
HRESULT
WINAPI
errorrec_GetCustomErrorObject
(
IErrorRecords
*
iface
,
ULONG
index
,
REFIID
riid
,
IUnknown
**
object
)
{
ErrorInfoImpl
*
This
=
impl_from_IErrorRecords
(
iface
);
errorrecords
*
This
=
impl_from_IErrorRecords
(
iface
);
TRACE
(
"(%p)->(%u %s %p)
\n
"
,
This
,
index
,
debugstr_guid
(
riid
),
object
);
...
...
@@ -309,7 +309,7 @@ static HRESULT WINAPI errorrec_GetCustomErrorObject(IErrorRecords *iface, ULONG
static
HRESULT
WINAPI
errorrec_GetErrorInfo
(
IErrorRecords
*
iface
,
ULONG
index
,
LCID
lcid
,
IErrorInfo
**
ppErrorInfo
)
{
ErrorInfoImpl
*
This
=
impl_from_IErrorRecords
(
iface
);
errorrecords
*
This
=
impl_from_IErrorRecords
(
iface
);
FIXME
(
"(%p)->(%u %d, %p)
\n
"
,
This
,
index
,
lcid
,
ppErrorInfo
);
...
...
@@ -324,7 +324,7 @@ static HRESULT WINAPI errorrec_GetErrorInfo(IErrorRecords *iface, ULONG index,
static
HRESULT
WINAPI
errorrec_GetErrorParameters
(
IErrorRecords
*
iface
,
ULONG
index
,
DISPPARAMS
*
pdispparams
)
{
ErrorInfoImpl
*
This
=
impl_from_IErrorRecords
(
iface
);
errorrecords
*
This
=
impl_from_IErrorRecords
(
iface
);
FIXME
(
"(%p)->(%u %p)
\n
"
,
This
,
index
,
pdispparams
);
...
...
@@ -339,7 +339,7 @@ static HRESULT WINAPI errorrec_GetErrorParameters(IErrorRecords *iface, ULONG in
static
HRESULT
WINAPI
errorrec_GetRecordCount
(
IErrorRecords
*
iface
,
ULONG
*
count
)
{
ErrorInfoImpl
*
This
=
impl_from_IErrorRecords
(
iface
);
errorrecords
*
This
=
impl_from_IErrorRecords
(
iface
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
count
);
...
...
@@ -368,7 +368,7 @@ static const IErrorRecordsVtbl ErrorRecordsVtbl =
HRESULT
create_error_info
(
IUnknown
*
outer
,
void
**
obj
)
{
ErrorInfoImpl
*
This
;
errorrecords
*
This
;
TRACE
(
"(%p, %p)
\n
"
,
outer
,
obj
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment