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
4b38ced1
Commit
4b38ced1
authored
Nov 26, 2014
by
Nikolay Sivov
Committed by
Alexandre Julliard
Nov 27, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite: Hide factory vtable selection in init helper.
parent
c5af130e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
main.c
dlls/dwrite/main.c
+3
-3
No files found.
dlls/dwrite/main.c
View file @
4b38ced1
...
...
@@ -1067,9 +1067,9 @@ static const struct IDWriteFactoryVtbl shareddwritefactoryvtbl = {
dwritefactory_CreateGlyphRunAnalysis
};
static
void
init_dwritefactory
(
struct
dwritefactory
*
factory
,
const
struct
IDWriteFactoryVtbl
*
vtbl
)
static
void
init_dwritefactory
(
struct
dwritefactory
*
factory
,
DWRITE_FACTORY_TYPE
type
)
{
factory
->
IDWriteFactory_iface
.
lpVtbl
=
vtbl
;
factory
->
IDWriteFactory_iface
.
lpVtbl
=
type
==
DWRITE_FACTORY_TYPE_SHARED
?
&
shareddwritefactoryvtbl
:
&
dwritefactory
vtbl
;
factory
->
ref
=
1
;
factory
->
localfontfileloader
=
NULL
;
factory
->
system_collection
=
NULL
;
...
...
@@ -1099,7 +1099,7 @@ HRESULT WINAPI DWriteCreateFactory(DWRITE_FACTORY_TYPE type, REFIID riid, IUnkno
factory
=
heap_alloc
(
sizeof
(
struct
dwritefactory
));
if
(
!
factory
)
return
E_OUTOFMEMORY
;
init_dwritefactory
(
factory
,
type
==
DWRITE_FACTORY_TYPE_SHARED
?
&
shareddwritefactoryvtbl
:
&
dwritefactoryvtbl
);
init_dwritefactory
(
factory
,
type
);
if
(
type
==
DWRITE_FACTORY_TYPE_SHARED
)
if
(
InterlockedCompareExchangePointer
((
void
**
)
&
shared_factory
,
factory
,
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