[PATCH 1/8] user32/tests: Test opening raw input devices.
Zebediah Figura
zfigura at codeweavers.com
Tue Jul 2 18:07:54 CDT 2019
Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
---
dlls/user32/tests/input.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/dlls/user32/tests/input.c b/dlls/user32/tests/input.c
index 4a9be550bdc..998fcdd1943 100644
--- a/dlls/user32/tests/input.c
+++ b/dlls/user32/tests/input.c
@@ -1599,6 +1599,7 @@ static void test_GetRawInputDeviceList(void)
char nameA[128];
UINT sz, len;
RID_DEVICE_INFO info;
+ HANDLE file;
/* get required buffer size */
name[0] = '\0';
@@ -1638,6 +1639,11 @@ static void test_GetRawInputDeviceList(void)
ok(ret == sizeof(info), "GetRawInputDeviceInfo gave wrong return: %d\n", err);
ok(sz == sizeof(info), "GetRawInputDeviceInfo set wrong size\n");
ok(info.dwType == devices[i].dwType, "GetRawInputDeviceInfo set wrong type: 0x%x\n", info.dwType);
+
+ file = CreateFileW(name, 0, FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING, 0, NULL);
+ todo_wine_if(info.dwType != RIM_TYPEHID)
+ ok(file != INVALID_HANDLE_VALUE, "Failed to open %s, error %u\n", wine_dbgstr_w(name), GetLastError());
+ CloseHandle(file);
}
/* check if variable changes from larger to smaller value */
--
2.20.1
More information about the wine-devel
mailing list