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
ea118ecb
Commit
ea118ecb
authored
Dec 17, 2002
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the type of the This pointer in the vtbl functions inherited from
the base class.
parent
3121fdac
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
unknwn.h
include/unknwn.h
+3
-3
header.c
tools/widl/header.c
+4
-4
No files found.
include/unknwn.h
View file @
ea118ecb
...
...
@@ -136,15 +136,15 @@ struct IClassFactoryVtbl {
/*** IUnknown methods ***/
HRESULT
(
CALLBACK
*
QueryInterface
)(
I
Unknown
*
This
,
I
ClassFactory
*
This
,
REFIID
riid
,
void
**
ppvObject
);
ULONG
(
CALLBACK
*
AddRef
)(
I
Unknown
*
This
);
I
ClassFactory
*
This
);
ULONG
(
CALLBACK
*
Release
)(
I
Unknown
*
This
);
I
ClassFactory
*
This
);
/*** IClassFactory methods ***/
HRESULT
(
CALLBACK
*
CreateInstance
)(
...
...
tools/widl/header.c
View file @
ea118ecb
...
...
@@ -556,12 +556,12 @@ static void write_cpp_method_def(type_t *iface)
}
}
static
void
write_c_method_def
(
type_t
*
iface
)
static
void
write_c_method_def
(
type_t
*
iface
,
char
*
name
)
{
func_t
*
cur
=
iface
->
funcs
;
while
(
NEXT_LINK
(
cur
))
cur
=
NEXT_LINK
(
cur
);
if
(
iface
->
ref
)
write_c_method_def
(
iface
->
ref
);
if
(
iface
->
ref
)
write_c_method_def
(
iface
->
ref
,
name
);
indent
(
0
);
fprintf
(
header
,
"/*** %s methods ***/
\n
"
,
iface
->
name
);
while
(
cur
)
{
...
...
@@ -572,7 +572,7 @@ static void write_c_method_def(type_t *iface)
fprintf
(
header
,
" (CALLBACK *"
);
write_name
(
header
,
def
);
fprintf
(
header
,
")(
\n
"
);
write_args
(
header
,
cur
->
args
,
iface
->
name
,
1
);
write_args
(
header
,
cur
->
args
,
name
,
1
);
fprintf
(
header
,
");
\n
"
);
fprintf
(
header
,
"
\n
"
);
}
...
...
@@ -724,7 +724,7 @@ void write_com_interface(type_t *iface)
indentation
++
;
fprintf
(
header
,
" ICOM_MSVTABLE_COMPAT_FIELDS
\n
"
);
fprintf
(
header
,
"
\n
"
);
write_c_method_def
(
iface
);
write_c_method_def
(
iface
,
iface
->
name
);
indentation
--
;
fprintf
(
header
,
"};
\n
"
);
fprintf
(
header
,
"
\n
"
);
...
...
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