mirror of
https://github.com/reactos/wine.git
synced 2024-11-26 05:00:30 +00:00
oledb32/tests: Improve IDataSourceLocator tests a bit.
This commit is contained in:
parent
725e4733cf
commit
ea2387b2a7
@ -737,10 +737,8 @@ static void test_dslocator(void)
|
||||
{
|
||||
COMPATIBLE_LONG hwnd = 0;
|
||||
|
||||
/* Crashes under Window 7
|
||||
hr = IDataSourceLocator_get_hWnd(dslocator, NULL);
|
||||
ok(hr == E_INVALIDARG, "got %08x\n", hr);
|
||||
*/
|
||||
if (0) /* Crashes under Window 7 */
|
||||
hr = IDataSourceLocator_get_hWnd(dslocator, NULL);
|
||||
|
||||
hr = IDataSourceLocator_get_hWnd(dslocator, &hwnd);
|
||||
ok(hr == S_OK, "got %08x\n", hr);
|
||||
@ -755,7 +753,7 @@ static void test_dslocator(void)
|
||||
hr = IDataSourceLocator_put_hWnd(dslocator, hwnd);
|
||||
ok(hr == S_OK, "got %08x\n", hr);
|
||||
|
||||
hwnd = 0xDEADBEEF;
|
||||
hwnd = 0;
|
||||
hr = IDataSourceLocator_get_hWnd(dslocator, &hwnd);
|
||||
ok(hr == S_OK, "got %08x\n", hr);
|
||||
ok(hwnd == 0xDEADBEEF, "got %p\n", (HWND)hwnd);
|
||||
|
Loading…
Reference in New Issue
Block a user