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
74e0072d
Commit
74e0072d
authored
Mar 29, 2009
by
Jacek Caban
Committed by
Alexandre Julliard
Mar 30, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Get rid of ICOM_THIS_MULTI macro.
parent
67d2fdc3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
9 deletions
+10
-9
format.c
dlls/urlmon/format.c
+10
-8
urlmon_main.h
dlls/urlmon/urlmon_main.h
+0
-1
No files found.
dlls/urlmon/format.c
View file @
74e0072d
...
...
@@ -35,11 +35,13 @@ typedef struct {
static
IEnumFORMATETC
*
EnumFORMATETC_Create
(
UINT
cfmtetc
,
const
FORMATETC
*
rgfmtetc
,
UINT
it
);
#define ENUMF_THIS(iface)
ICOM_THIS_MULTI(EnumFORMATETC, lpEnumFORMATETCVtbl
, iface)
#define ENUMF_THIS(iface)
DEFINE_THIS(EnumFORMATETC, EnumFORMATETC
, iface)
static
HRESULT
WINAPI
EnumFORMATETC_QueryInterface
(
IEnumFORMATETC
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
TRACE
(
"(%p)->(%s %p)
\n
"
,
iface
,
debugstr_guid
(
riid
),
ppv
);
EnumFORMATETC
*
This
=
ENUMF_THIS
(
iface
);
TRACE
(
"(%p)->(%s %p)
\n
"
,
This
,
debugstr_guid
(
riid
),
ppv
);
*
ppv
=
NULL
;
...
...
@@ -55,7 +57,7 @@ static HRESULT WINAPI EnumFORMATETC_QueryInterface(IEnumFORMATETC *iface, REFIID
static
ULONG
WINAPI
EnumFORMATETC_AddRef
(
IEnumFORMATETC
*
iface
)
{
ENUMF_THIS
(
iface
);
E
numFORMATETC
*
This
=
E
NUMF_THIS
(
iface
);
LONG
ref
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p) ref=%d
\n
"
,
This
,
ref
);
return
ref
;
...
...
@@ -63,7 +65,7 @@ static ULONG WINAPI EnumFORMATETC_AddRef(IEnumFORMATETC *iface)
static
ULONG
WINAPI
EnumFORMATETC_Release
(
IEnumFORMATETC
*
iface
)
{
ENUMF_THIS
(
iface
);
E
numFORMATETC
*
This
=
E
NUMF_THIS
(
iface
);
LONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p) ref=%d
\n
"
,
This
,
ref
);
...
...
@@ -81,7 +83,7 @@ static ULONG WINAPI EnumFORMATETC_Release(IEnumFORMATETC *iface)
static
HRESULT
WINAPI
EnumFORMATETC_Next
(
IEnumFORMATETC
*
iface
,
ULONG
celt
,
FORMATETC
*
rgelt
,
ULONG
*
pceltFetched
)
{
ENUMF_THIS
(
iface
);
E
numFORMATETC
*
This
=
E
NUMF_THIS
(
iface
);
ULONG
cnt
;
TRACE
(
"(%p)->(%d %p %p)
\n
"
,
This
,
celt
,
rgelt
,
pceltFetched
);
...
...
@@ -108,7 +110,7 @@ static HRESULT WINAPI EnumFORMATETC_Next(IEnumFORMATETC *iface, ULONG celt,
static
HRESULT
WINAPI
EnumFORMATETC_Skip
(
IEnumFORMATETC
*
iface
,
ULONG
celt
)
{
ENUMF_THIS
(
iface
);
E
numFORMATETC
*
This
=
E
NUMF_THIS
(
iface
);
TRACE
(
"(%p)->(%d)
\n
"
,
This
,
celt
);
...
...
@@ -118,7 +120,7 @@ static HRESULT WINAPI EnumFORMATETC_Skip(IEnumFORMATETC *iface, ULONG celt)
static
HRESULT
WINAPI
EnumFORMATETC_Reset
(
IEnumFORMATETC
*
iface
)
{
ENUMF_THIS
(
iface
);
E
numFORMATETC
*
This
=
E
NUMF_THIS
(
iface
);
TRACE
(
"(%p)
\n
"
,
This
);
...
...
@@ -128,7 +130,7 @@ static HRESULT WINAPI EnumFORMATETC_Reset(IEnumFORMATETC *iface)
static
HRESULT
WINAPI
EnumFORMATETC_Clone
(
IEnumFORMATETC
*
iface
,
IEnumFORMATETC
**
ppenum
)
{
ENUMF_THIS
(
iface
);
E
numFORMATETC
*
This
=
E
NUMF_THIS
(
iface
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
ppenum
);
...
...
dlls/urlmon/urlmon_main.h
View file @
74e0072d
...
...
@@ -53,7 +53,6 @@ extern LONG URLMON_refCount;
static
inline
void
URLMON_LockModule
(
void
)
{
InterlockedIncrement
(
&
URLMON_refCount
);
}
static
inline
void
URLMON_UnlockModule
(
void
)
{
InterlockedDecrement
(
&
URLMON_refCount
);
}
#define ICOM_THIS_MULTI(impl,field,iface) impl* const This=(impl*)((char*)(iface) - offsetof(impl,field))
#define DEFINE_THIS2(cls,ifc,iface) ((cls*)((BYTE*)(iface)-offsetof(cls,ifc)))
#define DEFINE_THIS(cls,ifc,iface) DEFINE_THIS2(cls,lp ## ifc ## Vtbl,iface)
...
...
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