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
3e5bf703
Commit
3e5bf703
authored
Nov 28, 2022
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sane.ds: Use the Unix call helpers.
parent
15e04490
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
6 deletions
+2
-6
sane_main.c
dlls/sane.ds/sane_main.c
+1
-3
unixlib.h
dlls/sane.ds/unixlib.h
+1
-3
No files found.
dlls/sane.ds/sane_main.c
View file @
3e5bf703
...
...
@@ -30,7 +30,6 @@ struct tagActiveDS activeDS;
DSMENTRYPROC
SANE_dsmentry
;
HINSTANCE
SANE_instance
;
unixlib_handle_t
sane_handle
=
0
;
BOOL
WINAPI
DllMain
(
HINSTANCE
hinstDLL
,
DWORD
fdwReason
,
LPVOID
lpvReserved
)
{
...
...
@@ -41,8 +40,7 @@ BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
case
DLL_PROCESS_ATTACH
:
{
SANE_instance
=
hinstDLL
;
DisableThreadLibraryCalls
(
hinstDLL
);
if
(
NtQueryVirtualMemory
(
GetCurrentProcess
(),
hinstDLL
,
MemoryWineUnixFuncs
,
&
sane_handle
,
sizeof
(
sane_handle
),
NULL
))
return
FALSE
;
if
(
__wine_init_unix_call
())
return
FALSE
;
SANE_CALL
(
process_attach
,
NULL
);
break
;
}
...
...
dlls/sane.ds/unixlib.h
View file @
3e5bf703
...
...
@@ -97,6 +97,4 @@ enum sane_funcs
unix_option_find_descriptor
,
};
extern
unixlib_handle_t
sane_handle
DECLSPEC_HIDDEN
;
#define SANE_CALL( func, params ) __wine_unix_call( sane_handle, unix_ ## func, params )
#define SANE_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