Module: wine Branch: master Commit: ea2387b2a7dc812796d16abb742a210211fc82cc URL: http://source.winehq.org/git/wine.git/?a=commit;h=ea2387b2a7dc812796d16abb74...
Author: Nikolay Sivov nsivov@codeweavers.com Date: Wed Jun 10 01:14:45 2015 +0300
oledb32/tests: Improve IDataSourceLocator tests a bit.
---
dlls/oledb32/tests/database.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/dlls/oledb32/tests/database.c b/dlls/oledb32/tests/database.c index 696ae70..5393a91 100644 --- a/dlls/oledb32/tests/database.c +++ b/dlls/oledb32/tests/database.c @@ -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);