[PATCH 0/1] MR7059: bluetoothapis/tests: Don't test functions directly when reporting GetLastError()
From: André Zwing <nerv(a)dawncrow.de> --- dlls/bluetoothapis/tests/radio.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/dlls/bluetoothapis/tests/radio.c b/dlls/bluetoothapis/tests/radio.c index c175f110b5c..5851df6cc02 100644 --- a/dlls/bluetoothapis/tests/radio.c +++ b/dlls/bluetoothapis/tests/radio.c @@ -60,8 +60,11 @@ void test_BluetoothFindFirstRadio( void ) ok( err == exp, "%lu != %lu\n", err, exp ); if (find) { + BOOL ret; + CloseHandle( radio ); - ok( BluetoothFindRadioClose( find ), "BluetoothFindRadioClose failed: %lu\n", GetLastError() ); + ret = BluetoothFindRadioClose( find ); + ok( ret, "BluetoothFindRadioClose failed: %lu\n", GetLastError() ); } } @@ -102,7 +105,8 @@ void test_BluetoothFindNextRadio( void ) } CloseHandle( radio ); } - ok( BluetoothFindRadioClose( find ), "BluetoothFindRadioClose failed: %lu\n", GetLastError() ); + ret = BluetoothFindRadioClose( find ); + ok( ret, "BluetoothFindRadioClose failed: %lu\n", GetLastError() ); } void test_BluetoothFindRadioClose( void ) -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/7059
participants (1)
-
André Zwing