Nikolay Sivov : ole32/tests: Additional test for RevokeDragDrop with destroyed window.
Alexandre Julliard
julliard at winehq.org
Mon May 3 11:54:06 CDT 2010
Module: wine
Branch: master
Commit: 071d16d62444f5695f511a46023e03394f7bdd40
URL: http://source.winehq.org/git/wine.git/?a=commit;h=071d16d62444f5695f511a46023e03394f7bdd40
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Sun May 2 03:01:36 2010 +0400
ole32/tests: Additional test for RevokeDragDrop with destroyed window.
---
dlls/ole32/tests/dragdrop.c | 17 +++++++++++++++++
1 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/dlls/ole32/tests/dragdrop.c b/dlls/ole32/tests/dragdrop.c
index ce60978..e098354 100644
--- a/dlls/ole32/tests/dragdrop.c
+++ b/dlls/ole32/tests/dragdrop.c
@@ -335,6 +335,23 @@ static void test_Register_Revoke(void)
ok(hr == DRAGDROP_E_INVALIDHWND, "RevokeDragDrop with NULL hwnd should return DRAGDROP_E_INVALIDHWND instead of 0x%08x\n", hr);
DestroyWindow(hwnd);
+
+ /* try to revoke with already destroyed window */
+ OleInitialize(NULL);
+
+ hwnd = CreateWindowA("WineOleTestClass", "Test", 0,
+ CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, NULL,
+ NULL, NULL, NULL);
+
+ hr = RegisterDragDrop(hwnd, &DropTarget);
+ ok(hr == S_OK, "got 0x%08x\n", hr);
+
+ DestroyWindow(hwnd);
+
+ hr = RevokeDragDrop(hwnd);
+ ok(hr == DRAGDROP_E_INVALIDHWND, "got 0x%08x\n", hr);
+
+ OleUninitialize();
}
static void test_DoDragDrop(void)
More information about the wine-cvs
mailing list