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
41430465
Commit
41430465
authored
Nov 28, 2022
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avicap32: Use the Unix call helpers.
parent
b072bb49
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
5 deletions
+2
-5
avicap32_main.c
dlls/avicap32/avicap32_main.c
+2
-5
No files found.
dlls/avicap32/avicap32_main.c
View file @
41430465
...
...
@@ -31,7 +31,6 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
avicap
);
static
HINSTANCE
avicap_instance
;
static
unixlib_handle_t
unix_handle
;
static
const
WCHAR
class_name
[]
=
L"wine_avicap_class"
;
...
...
@@ -125,8 +124,7 @@ BOOL VFWAPI capGetDriverDescriptionW(WORD index, WCHAR *name, int name_len, WCHA
struct
get_device_desc_params
params
;
params
.
index
=
index
;
if
(
!
unix_handle
||
__wine_unix_call
(
unix_handle
,
unix_get_device_desc
,
&
params
))
return
FALSE
;
if
(
WINE_UNIX_CALL
(
unix_get_device_desc
,
&
params
))
return
FALSE
;
TRACE
(
"Found device name %s, version %s.
\n
"
,
debugstr_w
(
params
.
name
),
debugstr_w
(
params
.
version
));
lstrcpynW
(
name
,
params
.
name
,
name_len
);
...
...
@@ -139,9 +137,8 @@ BOOL WINAPI DllMain(HINSTANCE instance, DWORD reason, void *reserved)
switch
(
reason
)
{
case
DLL_PROCESS_ATTACH
:
NtQueryVirtualMemory
(
GetCurrentProcess
(),
instance
,
MemoryWineUnixFuncs
,
&
unix_handle
,
sizeof
(
unix_handle
),
NULL
);
DisableThreadLibraryCalls
(
instance
);
__wine_init_unix_call
();
register_class
();
avicap_instance
=
instance
;
break
;
...
...
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