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
7af2899a
Commit
7af2899a
authored
Dec 29, 2010
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Dec 29, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oledb32: Use ifaces instead of vtbl pointers in convert.
parent
5101f249
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
convert.c
dlls/oledb32/convert.c
+11
-11
No files found.
dlls/oledb32/convert.c
View file @
7af2899a
...
...
@@ -38,8 +38,8 @@ WINE_DEFAULT_DEBUG_CHANNEL(oledb);
typedef
struct
{
const
struct
IDataConvertVtbl
*
lpVtbl
;
const
struct
IDCInfoVtbl
*
lpDCInfoVtbl
;
IDataConvert
IDataConvert_iface
;
IDCInfo
IDCInfo_iface
;
LONG
ref
;
...
...
@@ -48,12 +48,12 @@ typedef struct
static
inline
convert
*
impl_from_IDataConvert
(
IDataConvert
*
iface
)
{
return
(
convert
*
)((
char
*
)
iface
-
FIELD_OFFSET
(
convert
,
lpVtbl
)
);
return
CONTAINING_RECORD
(
iface
,
convert
,
IDataConvert_iface
);
}
static
inline
convert
*
impl_from_IDCInfo
(
IDCInfo
*
iface
)
{
return
(
convert
*
)((
char
*
)
iface
-
FIELD_OFFSET
(
convert
,
lpDCInfoVtbl
)
);
return
CONTAINING_RECORD
(
iface
,
convert
,
IDCInfo_iface
);
}
static
HRESULT
WINAPI
convert_QueryInterface
(
IDataConvert
*
iface
,
...
...
@@ -72,7 +72,7 @@ static HRESULT WINAPI convert_QueryInterface(IDataConvert* iface,
}
else
if
(
IsEqualIID
(
riid
,
&
IID_IDCInfo
))
{
*
obj
=
&
This
->
lpDCInfoVtbl
;
*
obj
=
&
This
->
IDCInfo_iface
;
}
else
{
...
...
@@ -985,21 +985,21 @@ static HRESULT WINAPI dcinfo_QueryInterface(IDCInfo* iface, REFIID riid, void **
{
convert
*
This
=
impl_from_IDCInfo
(
iface
);
return
IDataConvert_QueryInterface
(
(
IDataConvert
*
)
This
,
riid
,
obj
);
return
IDataConvert_QueryInterface
(
&
This
->
IDataConvert_iface
,
riid
,
obj
);
}
static
ULONG
WINAPI
dcinfo_AddRef
(
IDCInfo
*
iface
)
{
convert
*
This
=
impl_from_IDCInfo
(
iface
);
return
IDataConvert_AddRef
(
(
IDataConvert
*
)
This
);
return
IDataConvert_AddRef
(
&
This
->
IDataConvert_iface
);
}
static
ULONG
WINAPI
dcinfo_Release
(
IDCInfo
*
iface
)
{
convert
*
This
=
impl_from_IDCInfo
(
iface
);
return
IDataConvert_Release
(
(
IDataConvert
*
)
This
);
return
IDataConvert_Release
(
&
This
->
IDataConvert_iface
);
}
static
HRESULT
WINAPI
dcinfo_GetInfo
(
IDCInfo
*
iface
,
ULONG
num
,
DCINFOTYPE
types
[],
DCINFO
**
info_ptr
)
...
...
@@ -1081,12 +1081,12 @@ HRESULT create_oledb_convert(IUnknown *outer, void **obj)
This
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
This
));
if
(
!
This
)
return
E_OUTOFMEMORY
;
This
->
lpVtbl
=
&
convert_vtbl
;
This
->
lpDCInfo
Vtbl
=
&
dcinfo_vtbl
;
This
->
IDataConvert_iface
.
lpVtbl
=
&
convert_vtbl
;
This
->
IDCInfo_iface
.
lp
Vtbl
=
&
dcinfo_vtbl
;
This
->
ref
=
1
;
This
->
version
=
0x110
;
*
obj
=
&
This
->
lpVtbl
;
*
obj
=
&
This
->
IDataConvert_iface
;
return
S_OK
;
}
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