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
0f7a3811
Commit
0f7a3811
authored
Mar 11, 2007
by
Jan Zerebecki
Committed by
Alexandre Julliard
Mar 12, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Add DebugInfo to critical sections.
Also add missing DeleteCriticalSection.
parent
826321bc
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
moniker.c
dlls/ole32/moniker.c
+4
-0
stg_prop.c
dlls/ole32/stg_prop.c
+3
-0
No files found.
dlls/ole32/moniker.c
View file @
0f7a3811
...
...
@@ -279,6 +279,9 @@ RunningObjectTableImpl_Destroy(void)
rot_entry_delete
(
rot_entry
);
}
DEBUG_CLEAR_CRITSEC_NAME
(
&
runningObjectTableInstance
->
lock
);
DeleteCriticalSection
(
&
runningObjectTableInstance
->
lock
);
/* free the ROT structure memory */
HeapFree
(
GetProcessHeap
(),
0
,
runningObjectTableInstance
);
runningObjectTableInstance
=
NULL
;
...
...
@@ -824,6 +827,7 @@ HRESULT WINAPI RunningObjectTableImpl_Initialize(void)
list_init
(
&
runningObjectTableInstance
->
rot
);
InitializeCriticalSection
(
&
runningObjectTableInstance
->
lock
);
DEBUG_SET_CRITSEC_NAME
(
&
runningObjectTableInstance
->
lock
,
"RunningObjectTableImpl.lock"
);
return
S_OK
;
}
...
...
dlls/ole32/stg_prop.c
View file @
0f7a3811
...
...
@@ -233,6 +233,7 @@ static ULONG WINAPI IPropertyStorage_fnRelease(
if
(
This
->
dirty
)
IPropertyStorage_Commit
(
iface
,
STGC_DEFAULT
);
IStream_Release
(
This
->
stm
);
This
->
cs
.
DebugInfo
->
Spare
[
0
]
=
0
;
DeleteCriticalSection
(
&
This
->
cs
);
PropertyStorage_DestroyDictionaries
(
This
);
HeapFree
(
GetProcessHeap
(),
0
,
This
);
...
...
@@ -1978,6 +1979,7 @@ static HRESULT PropertyStorage_BaseConstruct(IStream *stm,
(
*
pps
)
->
vtbl
=
&
IPropertyStorage_Vtbl
;
(
*
pps
)
->
ref
=
1
;
InitializeCriticalSection
(
&
(
*
pps
)
->
cs
);
(
*
pps
)
->
cs
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": PropertyStorage_impl.cs"
);
(
*
pps
)
->
stm
=
stm
;
memcpy
(
&
(
*
pps
)
->
fmtid
,
rfmtid
,
sizeof
((
*
pps
)
->
fmtid
));
(
*
pps
)
->
grfMode
=
grfMode
;
...
...
@@ -1986,6 +1988,7 @@ static HRESULT PropertyStorage_BaseConstruct(IStream *stm,
if
(
FAILED
(
hr
))
{
IStream_Release
(
stm
);
(
*
pps
)
->
cs
.
DebugInfo
->
Spare
[
0
]
=
0
;
DeleteCriticalSection
(
&
(
*
pps
)
->
cs
);
HeapFree
(
GetProcessHeap
(),
0
,
*
pps
);
*
pps
=
NULL
;
...
...
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