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
890dc4d2
Commit
890dc4d2
authored
Mar 01, 2015
by
Sebastian Lackner
Committed by
Alexandre Julliard
Mar 02, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
browseui: Always use interlocked functions when accessing variable BROWSEUI_refCount.
parent
7c486411
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
browseui_main.c
dlls/browseui/browseui_main.c
+2
-2
compcatcachedaemon.c
dlls/browseui/compcatcachedaemon.c
+2
-2
progressdlg.c
dlls/browseui/progressdlg.c
+2
-2
No files found.
dlls/browseui/browseui_main.c
View file @
890dc4d2
...
...
@@ -74,7 +74,7 @@ static void ClassFactory_Destructor(ClassFactory *This)
{
TRACE
(
"Destroying class factory %p
\n
"
,
This
);
heap_free
(
This
);
BROWSEUI_refCount
--
;
InterlockedDecrement
(
&
BROWSEUI_refCount
)
;
}
static
HRESULT
WINAPI
ClassFactory_QueryInterface
(
IClassFactory
*
iface
,
REFIID
riid
,
LPVOID
*
ppvOut
)
...
...
@@ -154,7 +154,7 @@ static HRESULT ClassFactory_Constructor(LPFNCONSTRUCTOR ctor, LPVOID *ppvOut)
This
->
ctor
=
ctor
;
*
ppvOut
=
This
;
TRACE
(
"Created class factory %p
\n
"
,
This
);
BROWSEUI_refCount
++
;
InterlockedIncrement
(
&
BROWSEUI_refCount
)
;
return
S_OK
;
}
...
...
dlls/browseui/compcatcachedaemon.c
View file @
890dc4d2
...
...
@@ -60,7 +60,7 @@ static void CompCatCacheDaemon_Destructor(CompCatCacheDaemon *This)
This
->
cs
.
DebugInfo
->
Spare
[
0
]
=
0
;
DeleteCriticalSection
(
&
This
->
cs
);
heap_free
(
This
);
BROWSEUI_refCount
--
;
InterlockedDecrement
(
&
BROWSEUI_refCount
)
;
}
static
HRESULT
WINAPI
CompCatCacheDaemon_QueryInterface
(
IRunnableTask
*
iface
,
REFIID
iid
,
LPVOID
*
ppvOut
)
...
...
@@ -159,6 +159,6 @@ HRESULT CompCatCacheDaemon_Constructor(IUnknown *pUnkOuter, IUnknown **ppOut)
TRACE
(
"returning %p
\n
"
,
This
);
*
ppOut
=
(
IUnknown
*
)
This
;
BROWSEUI_refCount
++
;
InterlockedIncrement
(
&
BROWSEUI_refCount
)
;
return
S_OK
;
}
dlls/browseui/progressdlg.c
View file @
890dc4d2
...
...
@@ -268,7 +268,7 @@ static void ProgressDialog_Destructor(ProgressDialog *This)
This
->
cs
.
DebugInfo
->
Spare
[
0
]
=
0
;
DeleteCriticalSection
(
&
This
->
cs
);
heap_free
(
This
);
BROWSEUI_refCount
--
;
InterlockedDecrement
(
&
BROWSEUI_refCount
)
;
}
static
HRESULT
WINAPI
ProgressDialog_QueryInterface
(
IProgressDialog
*
iface
,
REFIID
iid
,
LPVOID
*
ppvOut
)
...
...
@@ -574,6 +574,6 @@ HRESULT ProgressDialog_Constructor(IUnknown *pUnkOuter, IUnknown **ppOut)
TRACE
(
"returning %p
\n
"
,
This
);
*
ppOut
=
(
IUnknown
*
)
This
;
BROWSEUI_refCount
++
;
InterlockedIncrement
(
&
BROWSEUI_refCount
)
;
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