Commit 79115f41 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

kernel32: Fixed QueryDosDeviceNameW size (chars not bytes).

parent db7383d9
......@@ -1806,7 +1806,7 @@ static void test_QueryFullProcessImageNameW(void)
module_name[2] = '\0';
*device = '\0';
size = QueryDosDeviceW(module_name, device, sizeof(device));
size = QueryDosDeviceW(module_name, device, sizeof(device)/sizeof(device[0]));
ok(size, "QueryDosDeviceW failed: le=%u\n", GetLastError());
len = lstrlenW(device);
ok(size >= len+2, "expected %d to be greater than %d+2 = strlen(%s)\n", size, len, wine_dbgstr_w(device));
......
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