Module: wine Branch: master Commit: e1d932a9e11f0dd5dc5189f4c5f8aa813c76aade URL: https://source.winehq.org/git/wine.git/?a=commit;h=e1d932a9e11f0dd5dc5189f4c...
Author: Jacek Caban jacek@codeweavers.com Date: Mon May 27 13:38:10 2019 +0200
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
---
dlls/ntoskrnl.exe/tests/ntoskrnl.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/dlls/ntoskrnl.exe/tests/ntoskrnl.c b/dlls/ntoskrnl.exe/tests/ntoskrnl.c index 49490bb..d505643 100644 --- a/dlls/ntoskrnl.exe/tests/ntoskrnl.c +++ b/dlls/ntoskrnl.exe/tests/ntoskrnl.c @@ -233,6 +233,7 @@ static void test_overlapped(void)
cancel_cnt = 0xdeadbeef; 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 ok(cancel_cnt == 2, "cancel_cnt = %u\n", cancel_cnt);