ntoskrnl.exe/tests: Always test DeviceIoControl result.

Spotted by Mathew Hodson.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2019-05-27 13:38:10 +02:00 committed by Alexandre Julliard
parent 87a8622ffe
commit e1d932a9e1
1 changed files with 1 additions and 0 deletions

View File

@ -233,6 +233,7 @@ static void test_overlapped(void)
cancel_cnt = 0xdeadbeef; cancel_cnt = 0xdeadbeef;
res = DeviceIoControl(file, IOCTL_WINETEST_GET_CANCEL_COUNT, NULL, 0, &cancel_cnt, sizeof(cancel_cnt), NULL, &overlapped); res = DeviceIoControl(file, IOCTL_WINETEST_GET_CANCEL_COUNT, NULL, 0, &cancel_cnt, sizeof(cancel_cnt), NULL, &overlapped);
ok(res, "DeviceIoControl failed: %u\n", GetLastError());
todo_wine todo_wine
ok(cancel_cnt == 2, "cancel_cnt = %u\n", cancel_cnt); ok(cancel_cnt == 2, "cancel_cnt = %u\n", cancel_cnt);