Commit 21e3ba96 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

dinput8/tests: Use wide-char string literals.

parent 1b9c43df
...@@ -627,18 +627,17 @@ static void test_mouse_keyboard(void) ...@@ -627,18 +627,17 @@ static void test_mouse_keyboard(void)
if (raw_devices[0].hwndTarget != NULL) if (raw_devices[0].hwndTarget != NULL)
{ {
WCHAR di_hwnd_class[] = {'D','I','E','m','W','i','n',0};
WCHAR str[16]; WCHAR str[16];
int i; int i;
di_hwnd = raw_devices[0].hwndTarget; di_hwnd = raw_devices[0].hwndTarget;
i = GetClassNameW(di_hwnd, str, ARRAY_SIZE(str)); i = GetClassNameW(di_hwnd, str, ARRAY_SIZE(str));
ok(i == lstrlenW(di_hwnd_class), "GetClassName returned incorrect length\n"); ok(i == lstrlenW(L"DIEmWin"), "GetClassName returned incorrect length\n");
ok(!lstrcmpW(di_hwnd_class, str), "GetClassName returned incorrect name for this window's class\n"); ok(!lstrcmpW(L"DIEmWin", str), "GetClassName returned incorrect name for this window's class\n");
i = GetWindowTextW(di_hwnd, str, ARRAY_SIZE(str)); i = GetWindowTextW(di_hwnd, str, ARRAY_SIZE(str));
ok(i == lstrlenW(di_hwnd_class), "GetClassName returned incorrect length\n"); ok(i == lstrlenW(L"DIEmWin"), "GetClassName returned incorrect length\n");
ok(!lstrcmpW(di_hwnd_class, str), "GetClassName returned incorrect name for this window's class\n"); ok(!lstrcmpW(L"DIEmWin", str), "GetClassName returned incorrect name for this window's class\n");
} }
hr = IDirectInputDevice8_Acquire(di_mouse); hr = IDirectInputDevice8_Acquire(di_mouse);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment