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
1ba20d3b
Commit
1ba20d3b
authored
Jan 26, 2007
by
Jacek Caban
Committed by
Alexandre Julliard
Feb 05, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon: Code clean up.
parent
76b821bd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
umon.c
dlls/urlmon/umon.c
+3
-4
No files found.
dlls/urlmon/umon.c
View file @
1ba20d3b
...
@@ -339,7 +339,7 @@ static ULONG WINAPI URLMonikerImpl_AddRef(IMoniker* iface)
...
@@ -339,7 +339,7 @@ static ULONG WINAPI URLMonikerImpl_AddRef(IMoniker* iface)
URLMonikerImpl
*
This
=
(
URLMonikerImpl
*
)
iface
;
URLMonikerImpl
*
This
=
(
URLMonikerImpl
*
)
iface
;
ULONG
refCount
=
InterlockedIncrement
(
&
This
->
ref
);
ULONG
refCount
=
InterlockedIncrement
(
&
This
->
ref
);
TRACE
(
"(%p)
->(ref before=%u)
\n
"
,
This
,
refCount
-
1
);
TRACE
(
"(%p)
ref=%u
\n
"
,
This
,
refCount
);
return
refCount
;
return
refCount
;
}
}
...
@@ -352,7 +352,7 @@ static ULONG WINAPI URLMonikerImpl_Release(IMoniker* iface)
...
@@ -352,7 +352,7 @@ static ULONG WINAPI URLMonikerImpl_Release(IMoniker* iface)
URLMonikerImpl
*
This
=
(
URLMonikerImpl
*
)
iface
;
URLMonikerImpl
*
This
=
(
URLMonikerImpl
*
)
iface
;
ULONG
refCount
=
InterlockedDecrement
(
&
This
->
ref
);
ULONG
refCount
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p)
->(ref before=%u)
\n
"
,
This
,
refCount
+
1
);
TRACE
(
"(%p)
ref=%u
\n
"
,
This
,
refCount
);
/* destroy the object if there's no more reference on it */
/* destroy the object if there's no more reference on it */
if
(
!
refCount
)
{
if
(
!
refCount
)
{
...
@@ -1167,7 +1167,6 @@ HRESULT WINAPI CreateURLMoniker(IMoniker *pmkContext, LPCWSTR szURL, IMoniker **
...
@@ -1167,7 +1167,6 @@ HRESULT WINAPI CreateURLMoniker(IMoniker *pmkContext, LPCWSTR szURL, IMoniker **
{
{
URLMonikerImpl
*
obj
;
URLMonikerImpl
*
obj
;
HRESULT
hres
;
HRESULT
hres
;
IID
iid
=
IID_IMoniker
;
LPOLESTR
lefturl
=
NULL
;
LPOLESTR
lefturl
=
NULL
;
TRACE
(
"(%p, %s, %p)
\n
"
,
pmkContext
,
debugstr_w
(
szURL
),
ppmk
);
TRACE
(
"(%p, %s, %p)
\n
"
,
pmkContext
,
debugstr_w
(
szURL
),
ppmk
);
...
@@ -1189,7 +1188,7 @@ HRESULT WINAPI CreateURLMoniker(IMoniker *pmkContext, LPCWSTR szURL, IMoniker **
...
@@ -1189,7 +1188,7 @@ HRESULT WINAPI CreateURLMoniker(IMoniker *pmkContext, LPCWSTR szURL, IMoniker **
hres
=
URLMonikerImpl_Construct
(
obj
,
lefturl
,
szURL
);
hres
=
URLMonikerImpl_Construct
(
obj
,
lefturl
,
szURL
);
CoTaskMemFree
(
lefturl
);
CoTaskMemFree
(
lefturl
);
if
(
SUCCEEDED
(
hres
))
if
(
SUCCEEDED
(
hres
))
hres
=
URLMonikerImpl_QueryInterface
((
IMoniker
*
)
obj
,
&
iid
,
(
void
**
)
ppmk
);
hres
=
URLMonikerImpl_QueryInterface
((
IMoniker
*
)
obj
,
&
IID_IMoniker
,
(
void
**
)
ppmk
);
else
else
HeapFree
(
GetProcessHeap
(),
0
,
obj
);
HeapFree
(
GetProcessHeap
(),
0
,
obj
);
return
hres
;
return
hres
;
...
...
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