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
d4987802
Commit
d4987802
authored
Dec 21, 2018
by
Zebediah Figura
Committed by
Alexandre Julliard
Dec 24, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntoskrnl.exe: Handle already-loaded drivers in handle_bus_relations().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
e3ad1cff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
ntoskrnl.c
dlls/ntoskrnl.exe/ntoskrnl.c
+4
-1
No files found.
dlls/ntoskrnl.exe/ntoskrnl.c
View file @
d4987802
...
@@ -3756,7 +3756,10 @@ static void handle_bus_relations( DEVICE_OBJECT *device )
...
@@ -3756,7 +3756,10 @@ static void handle_bus_relations( DEVICE_OBJECT *device )
strcpyW
(
buffer
,
servicesW
);
strcpyW
(
buffer
,
servicesW
);
strcatW
(
buffer
,
driver
);
strcatW
(
buffer
,
driver
);
RtlInitUnicodeString
(
&
string
,
buffer
);
RtlInitUnicodeString
(
&
string
,
buffer
);
if
(
ZwLoadDriver
(
&
string
)
!=
STATUS_SUCCESS
)
status
=
ZwLoadDriver
(
&
string
);
if
(
status
==
STATUS_IMAGE_ALREADY_LOADED
)
return
;
else
if
(
status
!=
STATUS_SUCCESS
)
{
{
ERR_
(
plugplay
)(
"Failed to load driver %s
\n
"
,
debugstr_w
(
driver
)
);
ERR_
(
plugplay
)(
"Failed to load driver %s
\n
"
,
debugstr_w
(
driver
)
);
return
;
return
;
...
...
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