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
0e10e6ab
Commit
0e10e6ab
authored
Nov 28, 2022
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gphoto2.ds: Use the Unix call helpers.
parent
a62d3ab8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
6 deletions
+2
-6
gphoto2_main.c
dlls/gphoto2.ds/gphoto2_main.c
+1
-3
unixlib.h
dlls/gphoto2.ds/unixlib.h
+1
-3
No files found.
dlls/gphoto2.ds/gphoto2_main.c
View file @
0e10e6ab
...
...
@@ -477,7 +477,6 @@ static TW_UINT16 GPHOTO2_XferGroupSet (pTW_IDENTITY pOrigin,
}
HINSTANCE
GPHOTO2_instance
=
0
;
unixlib_handle_t
gphoto2_handle
=
0
;
BOOL
WINAPI
DllMain
(
HINSTANCE
hinstDLL
,
DWORD
fdwReason
,
LPVOID
lpvReserved
)
{
...
...
@@ -488,8 +487,7 @@ BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
case
DLL_PROCESS_ATTACH
:
GPHOTO2_instance
=
hinstDLL
;
DisableThreadLibraryCalls
(
hinstDLL
);
NtQueryVirtualMemory
(
GetCurrentProcess
(),
hinstDLL
,
MemoryWineUnixFuncs
,
&
gphoto2_handle
,
sizeof
(
gphoto2_handle
),
NULL
);
__wine_init_unix_call
();
break
;
}
...
...
dlls/gphoto2.ds/unixlib.h
View file @
0e10e6ab
...
...
@@ -71,6 +71,4 @@ enum gphoto2_funcs
unix_close_file
,
};
extern
unixlib_handle_t
gphoto2_handle
DECLSPEC_HIDDEN
;
#define GPHOTO2_CALL( func, params ) __wine_unix_call( gphoto2_handle, unix_ ## func, params )
#define GPHOTO2_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