ntoskrnl/tests: Open the HID device with FILE_SHARE_READ | FILE_SHARE_WRITE.
Fixes a test failure on Windows 10. Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
0500d4906b
commit
4084200765
|
@ -1537,7 +1537,8 @@ static void test_hid_device(void)
|
||||||
|
|
||||||
todo_wine ok(found, "didn't find device\n");
|
todo_wine ok(found, "didn't find device\n");
|
||||||
|
|
||||||
file = CreateFileA(iface_detail->DevicePath, FILE_READ_ACCESS, 0, NULL, OPEN_EXISTING, 0, NULL);
|
file = CreateFileA(iface_detail->DevicePath, FILE_READ_ACCESS,
|
||||||
|
FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING, 0, NULL);
|
||||||
ok(file != INVALID_HANDLE_VALUE, "got error %u\n", GetLastError());
|
ok(file != INVALID_HANDLE_VALUE, "got error %u\n", GetLastError());
|
||||||
|
|
||||||
CloseHandle(file);
|
CloseHandle(file);
|
||||||
|
|
Loading…
Reference in New Issue