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
c41d0c9a
Commit
c41d0c9a
authored
Oct 25, 2004
by
Dmitry Timoshkov
Committed by
Alexandre Julliard
Oct 25, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Remove bogus use of nStatCounter and hOleAut32 in CoSetState.
- Remove a comment about protecting per thread data by a critical section.
parent
7d83afbd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
8 deletions
+0
-8
compobj.c
dlls/ole32/compobj.c
+0
-8
No files found.
dlls/ole32/compobj.c
View file @
c41d0c9a
...
...
@@ -1962,9 +1962,6 @@ HRESULT WINAPI CoInitializeWOW(DWORD x,DWORD y) {
return
0
;
}
static
int
nStatCounter
=
0
;
/* global */
static
HMODULE
hOleAut32
=
0
;
/* global */
/***********************************************************************
* CoGetState [OLE32.@]
*
...
...
@@ -1990,7 +1987,6 @@ HRESULT WINAPI CoGetState(IUnknown ** ppv)
/***********************************************************************
* CoSetState [OLE32.@]
*
* NOTES: FIXME: protect this with a crst
*/
HRESULT
WINAPI
CoSetState
(
IUnknown
*
pv
)
{
...
...
@@ -2002,15 +1998,11 @@ HRESULT WINAPI CoSetState(IUnknown * pv)
if
(
pv
)
{
IUnknown_AddRef
(
pv
);
nStatCounter
++
;
if
(
nStatCounter
==
1
)
LoadLibraryA
(
"OLEAUT32.DLL"
);
}
if
(
apt
->
state
)
{
TRACE
(
"-- release %p now
\n
"
,
apt
->
state
);
IUnknown_Release
(
apt
->
state
);
nStatCounter
--
;
if
(
!
nStatCounter
)
FreeLibrary
(
hOleAut32
);
}
apt
->
state
=
pv
;
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