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
9484481c
Commit
9484481c
authored
Mar 10, 1999
by
Francis Beaudet
Committed by
Alexandre Julliard
Mar 10, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed a reference-counting problem in the external lock mechanism.
parent
81d8613a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
compobj.c
ole/compobj.c
+11
-4
No files found.
ole/compobj.c
View file @
9484481c
...
@@ -1586,13 +1586,20 @@ static void COM_ExternalLockAddRef(
...
@@ -1586,13 +1586,20 @@ static void COM_ExternalLockAddRef(
{
{
COM_ExternalLock
*
externalLock
=
COM_ExternalLockFind
(
pUnk
);
COM_ExternalLock
*
externalLock
=
COM_ExternalLockFind
(
pUnk
);
/*
* Add an external lock to the object. If it was already externally
* locked, just increase the reference count. If it was not.
* add the item to the list.
*/
if
(
externalLock
==
EL_NOT_FOUND
)
if
(
externalLock
==
EL_NOT_FOUND
)
COM_ExternalLockInsert
(
pUnk
);
COM_ExternalLockInsert
(
pUnk
);
else
else
{
externalLock
->
uRefCount
++
;
externalLock
->
uRefCount
++
;
/* add an external lock */
IUnknown_AddRef
(
pUnk
);
/* add a local lock as well */
/*
}
* Add an internal lock to the object
*/
IUnknown_AddRef
(
pUnk
);
}
}
/****************************************************************************
/****************************************************************************
...
...
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