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
ab296a30
Commit
ab296a30
authored
Jul 12, 2023
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jul 12, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windows.globalization: Use separate AddRef/Release methods for the language factory.
This currently works only because refcount field is at the same offset between structures.
parent
9559959f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
main.c
dlls/windows.globalization/main.c
+14
-2
No files found.
dlls/windows.globalization/main.c
View file @
ab296a30
...
...
@@ -621,11 +621,23 @@ static HRESULT STDMETHODCALLTYPE windows_globalization_language_factory_QueryInt
return
E_NOINTERFACE
;
}
static
ULONG
STDMETHODCALLTYPE
windows_globalization_language_factory_AddRef
(
IActivationFactory
*
iface
)
{
struct
language_factory
*
factory
=
impl_language_factory_from_IActivationFactory
(
iface
);
return
InterlockedIncrement
(
&
factory
->
ref
);
}
static
ULONG
STDMETHODCALLTYPE
windows_globalization_language_factory_Release
(
IActivationFactory
*
iface
)
{
struct
language_factory
*
factory
=
impl_language_factory_from_IActivationFactory
(
iface
);
return
InterlockedDecrement
(
&
factory
->
ref
);
}
static
const
struct
IActivationFactoryVtbl
activation_factory_language_vtbl
=
{
windows_globalization_language_factory_QueryInterface
,
windows_globalization_AddRef
,
windows_globalization_Release
,
windows_globalization_
language_factory_
AddRef
,
windows_globalization_
language_factory_
Release
,
/* IInspectable methods */
windows_globalization_GetIids
,
windows_globalization_GetRuntimeClassName
,
...
...
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