kernel32/tests: Silence a failing test on Win10+.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
This commit is contained in:
Eric Pouech 2022-12-20 15:47:56 +01:00 committed by Alexandre Julliard
parent 3eaa44a75c
commit f5a81ff02a

View file

@ -87,7 +87,9 @@ static void test_query_dos_deviceA(void)
for (;;) {
if (!*p) break;
ret2 = QueryDosDeviceA( p, buffer2, sizeof(buffer2) );
ok(ret2, "QueryDosDeviceA failed to return current mapping for %s, last error %lu\n", p, GetLastError());
/* Win10+ exposes security device which requires extra priviledges to be queried. So skip it */
ok(ret2 || broken( !strcmp( p, "MSSECFLTSYS" ) && GetLastError() == ERROR_ACCESS_DENIED ),
"QueryDosDeviceA failed to return current mapping for %s, last error %lu\n", p, GetLastError());
p += strlen(p) + 1;
if (ret <= (p-buffer)) break;
}