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
5392bd30
Commit
5392bd30
authored
Nov 25, 2022
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dwrite: Use the Unix call helpers.
parent
f3404064
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
7 deletions
+3
-7
main.c
dlls/dwrite/main.c
+2
-4
unixlib.h
dlls/dwrite/unixlib.h
+1
-3
No files found.
dlls/dwrite/main.c
View file @
5392bd30
...
...
@@ -36,7 +36,6 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
dwrite
);
HMODULE
dwrite_module
=
0
;
unixlib_handle_t
unixlib_handle
=
0
;
static
IDWriteFactory7
*
shared_factory
;
static
void
release_shared_factory
(
IDWriteFactory7
*
factory
);
...
...
@@ -47,8 +46,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD reason, LPVOID reserved)
case
DLL_PROCESS_ATTACH
:
dwrite_module
=
hinstDLL
;
DisableThreadLibraryCalls
(
hinstDLL
);
if
(
!
NtQueryVirtualMemory
(
GetCurrentProcess
(),
hinstDLL
,
MemoryWineUnixFuncs
,
&
unixlib_handle
,
sizeof
(
unixlib_handle
),
NULL
))
if
(
!
__wine_init_unix_call
())
UNIX_CALL
(
process_attach
,
NULL
);
init_local_fontfile_loader
();
break
;
...
...
@@ -56,7 +54,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD reason, LPVOID reserved)
if
(
reserved
)
break
;
release_shared_factory
(
shared_factory
);
release_system_fallback_data
();
if
(
unixlib_handle
)
UNIX_CALL
(
process_detach
,
NULL
);
UNIX_CALL
(
process_detach
,
NULL
);
}
return
TRUE
;
}
...
...
dlls/dwrite/unixlib.h
View file @
5392bd30
...
...
@@ -108,6 +108,4 @@ enum font_backend_funcs
unix_get_design_glyph_metrics
,
};
extern
unixlib_handle_t
unixlib_handle
DECLSPEC_HIDDEN
;
#define UNIX_CALL( func, params ) __wine_unix_call( unixlib_handle, unix_ ## func, params )
#define UNIX_CALL( func, params ) WINE_UNIX_CALL( unix_ ## func, params )
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