From ea2387b2a7dc812796d16abb742a210211fc82cc Mon Sep 17 00:00:00 2001 From: Nikolay Sivov Date: Wed, 10 Jun 2015 01:14:45 +0300 Subject: [PATCH] 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 696ae70e255..5393a915fb0 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);