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:
Zebediah Figura 2021-05-01 17:23:16 -05:00 committed by Alexandre Julliard
parent 0500d4906b
commit 4084200765
1 changed files with 2 additions and 1 deletions

View File

@ -1537,7 +1537,8 @@ static void test_hid_device(void)
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());
CloseHandle(file);