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
c37f91c7
Commit
c37f91c7
authored
Nov 28, 2022
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winspool.drv: Use the Unix call helpers.
parent
3e5bf703
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
6 deletions
+2
-6
wspool.c
dlls/winspool.drv/wspool.c
+1
-3
wspool.h
dlls/winspool.drv/wspool.h
+1
-3
No files found.
dlls/winspool.drv/wspool.c
View file @
c37f91c7
...
...
@@ -48,7 +48,6 @@ static CRITICAL_SECTION backend_cs = { &backend_cs_debug, -1, 0, 0, 0, 0 };
/* ############################### */
HINSTANCE
WINSPOOL_hInstance
=
NULL
;
unixlib_handle_t
winspool_handle
=
0
;
static
HMODULE
hlocalspl
;
static
BOOL
(
WINAPI
*
pInitializePrintProvidor
)(
LPPRINTPROVIDOR
,
DWORD
,
LPWSTR
);
...
...
@@ -115,8 +114,7 @@ BOOL WINAPI DllMain( HINSTANCE instance, DWORD reason, void *reserved )
case
DLL_PROCESS_ATTACH
:
WINSPOOL_hInstance
=
instance
;
DisableThreadLibraryCalls
(
instance
);
if
(
!
NtQueryVirtualMemory
(
GetCurrentProcess
(),
instance
,
MemoryWineUnixFuncs
,
&
winspool_handle
,
sizeof
(
winspool_handle
),
NULL
))
if
(
!
__wine_init_unix_call
())
UNIX_CALL
(
process_attach
,
NULL
);
WINSPOOL_LoadSystemPrinters
();
break
;
...
...
dlls/winspool.drv/wspool.h
View file @
c37f91c7
...
...
@@ -72,9 +72,7 @@ struct schedule_job_params
const
WCHAR
*
wine_port
;
};
extern
unixlib_handle_t
winspool_handle
DECLSPEC_HIDDEN
;
#define UNIX_CALL( func, params ) __wine_unix_call( winspool_handle, unix_ ## func, params )
#define UNIX_CALL( func, params ) WINE_UNIX_CALL( unix_ ## func, params )
enum
cups_funcs
{
...
...
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