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
80581c60
Commit
80581c60
authored
Feb 07, 2023
by
Zebediah Figura
Committed by
Alexandre Julliard
Feb 20, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "ntoskrnl.exe: Enforce path case in WM_DEVICECHANGE notifications.".
This reverts commit
c489356d
.
parent
f745900a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
9 deletions
+3
-9
pnp.c
dlls/ntoskrnl.exe/pnp.c
+1
-7
ntoskrnl.c
dlls/ntoskrnl.exe/tests/ntoskrnl.c
+2
-2
No files found.
dlls/ntoskrnl.exe/pnp.c
View file @
80581c60
...
...
@@ -725,13 +725,13 @@ NTSTATUS WINAPI IoSetDeviceInterfaceState( UNICODE_STRING *name, BOOLEAN enable
size_t
namelen
=
name
->
Length
/
sizeof
(
WCHAR
);
DEV_BROADCAST_DEVICEINTERFACE_W
*
broadcast
;
WCHAR
*
path
,
*
refstr
,
*
p
,
*
upper_end
;
struct
device_interface
*
iface
;
HANDLE
iface_key
,
control_key
;
OBJECT_ATTRIBUTES
attr
=
{
0
};
struct
wine_rb_entry
*
entry
;
UNICODE_STRING
control
=
RTL_CONSTANT_STRING
(
L"Control"
);
UNICODE_STRING
linked
=
RTL_CONSTANT_STRING
(
L"Linked"
);
WCHAR
*
path
,
*
refstr
,
*
p
;
UNICODE_STRING
string
;
DWORD
data
=
enable
;
NTSTATUS
ret
;
...
...
@@ -817,12 +817,6 @@ NTSTATUS WINAPI IoSetDeviceInterfaceState( UNICODE_STRING *name, BOOLEAN enable
broadcast
->
dbcc_classguid
=
iface
->
interface_class
;
lstrcpynW
(
broadcast
->
dbcc_name
,
name
->
Buffer
,
namelen
+
1
);
if
(
namelen
>
1
)
broadcast
->
dbcc_name
[
1
]
=
'\\'
;
upper_end
=
wcschr
(
broadcast
->
dbcc_name
,
'#'
);
if
(
upper_end
)
upper_end
=
wcschr
(
upper_end
+
1
,
'#'
);
while
(
upper_end
&&
upper_end
--
!=
broadcast
->
dbcc_name
)
*
upper_end
=
towupper
(
*
upper_end
);
send_devicechange
(
enable
?
DBT_DEVICEARRIVAL
:
DBT_DEVICEREMOVECOMPLETE
,
broadcast
,
len
);
heap_free
(
broadcast
);
}
...
...
dlls/ntoskrnl.exe/tests/ntoskrnl.c
View file @
80581c60
...
...
@@ -1406,7 +1406,7 @@ static LRESULT WINAPI device_notify_proc(HWND window, UINT message, WPARAM wpara
else
if
(
IsEqualGUID
(
&
iface
->
dbcc_classguid
,
&
child_class
))
{
++
got_child_arrival
;
todo_wine
ok
(
!
strcmp
(
iface
->
dbcc_name
,
"
\\\\
?
\\
Wine#Test#1#{deadbeef-29ef-4538-a5fd-b69573a362c2}"
),
ok
(
!
strcmp
(
iface
->
dbcc_name
,
"
\\\\
?
\\
Wine#Test#1#{deadbeef-29ef-4538-a5fd-b69573a362c2}"
),
"got name %s
\n
"
,
debugstr_a
(
iface
->
dbcc_name
));
}
break
;
...
...
@@ -1434,7 +1434,7 @@ static LRESULT WINAPI device_notify_proc(HWND window, UINT message, WPARAM wpara
else
if
(
IsEqualGUID
(
&
iface
->
dbcc_classguid
,
&
child_class
))
{
++
got_child_removal
;
todo_wine
ok
(
!
strcmp
(
iface
->
dbcc_name
,
"
\\\\
?
\\
Wine#Test#1#{deadbeef-29ef-4538-a5fd-b69573a362c2}"
),
ok
(
!
strcmp
(
iface
->
dbcc_name
,
"
\\\\
?
\\
Wine#Test#1#{deadbeef-29ef-4538-a5fd-b69573a362c2}"
),
"got name %s
\n
"
,
debugstr_a
(
iface
->
dbcc_name
));
}
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