Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
ac0826d5
Commit
ac0826d5
authored
Dec 10, 2010
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Dec 10, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mscoree: Use ifaces instead of vtbl pointers in ConfigFileHandler.
parent
bcf15c7b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
config.c
dlls/mscoree/config.c
+8
-8
No files found.
dlls/mscoree/config.c
View file @
ac0826d5
...
...
@@ -46,8 +46,8 @@ enum parse_state
typedef
struct
ConfigFileHandler
{
const
struct
ISAXContentHandlerVtbl
*
lpVtbl
;
const
struct
ISAXErrorHandlerVtbl
*
lpErrorVtbl
;
ISAXContentHandler
ISAXContentHandler_iface
;
ISAXErrorHandler
ISAXErrorHandler_iface
;
LONG
ref
;
enum
parse_state
states
[
16
];
int
statenum
;
...
...
@@ -56,12 +56,12 @@ typedef struct ConfigFileHandler
static
inline
ConfigFileHandler
*
impl_from_ISAXContentHandler
(
ISAXContentHandler
*
iface
)
{
return
(
ConfigFileHandler
*
)((
char
*
)
iface
-
FIELD_OFFSET
(
ConfigFileHandler
,
lpVtbl
)
);
return
CONTAINING_RECORD
(
iface
,
ConfigFileHandler
,
ISAXContentHandler_iface
);
}
static
inline
ConfigFileHandler
*
impl_from_ISAXErrorHandler
(
ISAXErrorHandler
*
iface
)
{
return
(
ConfigFileHandler
*
)((
char
*
)
iface
-
FIELD_OFFSET
(
ConfigFileHandler
,
lpErrorVtbl
)
);
return
CONTAINING_RECORD
(
iface
,
ConfigFileHandler
,
ISAXErrorHandler_iface
);
}
static
HRESULT
WINAPI
ConfigFileHandler_QueryInterface
(
ISAXContentHandler
*
iface
,
...
...
@@ -399,8 +399,8 @@ static HRESULT parse_config(VARIANT input, parsed_config_file *result)
if
(
!
handler
)
return
E_OUTOFMEMORY
;
handler
->
lpVtbl
=
&
ConfigFileHandlerVtbl
;
handler
->
lpError
Vtbl
=
&
ConfigFileHandlerErrorVtbl
;
handler
->
ISAXContentHandler_iface
.
lpVtbl
=
&
ConfigFileHandlerVtbl
;
handler
->
ISAXErrorHandler_iface
.
lp
Vtbl
=
&
ConfigFileHandlerErrorVtbl
;
handler
->
ref
=
1
;
handler
->
states
[
0
]
=
STATE_ROOT
;
handler
->
statenum
=
0
;
...
...
@@ -411,10 +411,10 @@ static HRESULT parse_config(VARIANT input, parsed_config_file *result)
if
(
SUCCEEDED
(
hr
))
{
hr
=
ISAXXMLReader_putContentHandler
(
reader
,
(
ISAXContentHandler
*
)
&
handler
->
lpVtbl
);
hr
=
ISAXXMLReader_putContentHandler
(
reader
,
&
handler
->
ISAXContentHandler_iface
);
if
(
SUCCEEDED
(
hr
))
hr
=
ISAXXMLReader_putErrorHandler
(
reader
,
(
ISAXErrorHandler
*
)
&
handler
->
lpErrorVtbl
);
hr
=
ISAXXMLReader_putErrorHandler
(
reader
,
&
handler
->
ISAXErrorHandler_iface
);
if
(
SUCCEEDED
(
hr
))
hr
=
ISAXXMLReader_parse
(
reader
,
input
);
...
...
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