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
115c3ab2
Commit
115c3ab2
authored
Mar 08, 2021
by
Huw Davies
Committed by
Alexandre Julliard
Mar 09, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
riched20: Remove an unused critsec.
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
8dbc40be
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
12 deletions
+7
-12
txtsrv.c
dlls/riched20/txtsrv.c
+7
-12
No files found.
dlls/riched20/txtsrv.c
View file @
115c3ab2
...
...
@@ -34,14 +34,13 @@ WINE_DEFAULT_DEBUG_CHANNEL(richedit);
struct
text_services
{
IUnknown
IUnknown_inner
;
ITextServices
ITextServices_iface
;
IUnknown
*
outer_unk
;
LONG
ref
;
ITextHost
*
host
;
CRITICAL_SECTION
csTxtSrv
;
ME_TextEditor
*
editor
;
char
spare
[
256
];
IUnknown
IUnknown_inner
;
ITextServices
ITextServices_iface
;
IUnknown
*
outer_unk
;
LONG
ref
;
ITextHost
*
host
;
ME_TextEditor
*
editor
;
char
spare
[
256
];
/* for bug #12179 */
};
static
inline
struct
text_services
*
impl_from_IUnknown
(
IUnknown
*
iface
)
...
...
@@ -95,8 +94,6 @@ static ULONG WINAPI ITextServicesImpl_Release(IUnknown *iface)
if
(
!
ref
)
{
ME_DestroyEditor
(
services
->
editor
);
services
->
csTxtSrv
.
DebugInfo
->
Spare
[
0
]
=
0
;
DeleteCriticalSection
(
&
services
->
csTxtSrv
);
CoTaskMemFree
(
services
);
}
return
ref
;
...
...
@@ -378,8 +375,6 @@ HRESULT create_text_services( IUnknown *outer, ITextHost *text_host, IUnknown **
services
=
CoTaskMemAlloc
(
sizeof
(
*
services
)
);
if
(
services
==
NULL
)
return
E_OUTOFMEMORY
;
InitializeCriticalSection
(
&
services
->
csTxtSrv
);
services
->
csTxtSrv
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": ITextServicesImpl.csTxtSrv"
);
services
->
ref
=
1
;
services
->
host
=
text_host
;
/* Don't take a ref of the host - this would lead to a mutual dependency */
services
->
IUnknown_inner
.
lpVtbl
=
&
textservices_inner_vtbl
;
...
...
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