Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
4510e490
Commit
4510e490
authored
Nov 24, 2022
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winebus.sys: Use the Unix call helpers.
parent
2a366cdd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
main.c
dlls/winebus.sys/main.c
+2
-8
No files found.
dlls/winebus.sys/main.c
View file @
4510e490
...
...
@@ -100,12 +100,9 @@ static CRITICAL_SECTION device_list_cs = { &critsect_debug, -1, 0, 0, 0, 0 };
static
struct
list
device_list
=
LIST_INIT
(
device_list
);
static
HMODULE
instance
;
static
unixlib_handle_t
winebus_handle
;
static
NTSTATUS
winebus_call
(
unsigned
int
code
,
void
*
args
)
{
return
__wine_unix_call
(
winebus_handle
,
code
,
args
);
return
WINE_UNIX_CALL
(
code
,
args
);
}
static
void
unix_device_remove
(
DEVICE_OBJECT
*
device
)
...
...
@@ -1181,10 +1178,7 @@ NTSTATUS WINAPI DriverEntry( DRIVER_OBJECT *driver, UNICODE_STRING *path )
TRACE
(
"(%p, %s)
\n
"
,
driver
,
debugstr_w
(
path
->
Buffer
)
);
RtlPcToFileHeader
(
&
DriverEntry
,
(
void
*
)
&
instance
);
if
((
ret
=
NtQueryVirtualMemory
(
GetCurrentProcess
(),
instance
,
MemoryWineUnixFuncs
,
&
winebus_handle
,
sizeof
(
winebus_handle
),
NULL
)))
return
ret
;
if
((
ret
=
__wine_init_unix_call
()))
return
ret
;
attr
.
Length
=
sizeof
(
attr
);
attr
.
ObjectName
=
path
;
...
...
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