kernel32: Fixed QueryDosDeviceNameW size (chars not bytes).

This commit is contained in:
Marcus Meissner 2011-10-08 14:21:36 +02:00 committed by Alexandre Julliard
parent db7383d969
commit 79115f4179
1 changed files with 1 additions and 1 deletions

View File

@ -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));