Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
47432cba
Commit
47432cba
authored
Apr 05, 2007
by
Rob Shearman
Committed by
Alexandre Julliard
Apr 05, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Check the input hwnd is valid in RevokeDragDrop.
parent
2d8ae2cf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
ole2.c
dlls/ole32/ole2.c
+9
-0
dragdrop.c
dlls/ole32/tests/dragdrop.c
+0
-1
No files found.
dlls/ole32/ole2.c
View file @
47432cba
...
...
@@ -299,7 +299,10 @@ HRESULT WINAPI RegisterDragDrop(
return
E_INVALIDARG
;
if
(
!
IsWindow
(
hwnd
))
{
ERR
(
"invalid hwnd %p
\n
"
,
hwnd
);
return
DRAGDROP_E_INVALIDHWND
;
}
/*
* First, check if the window is already registered.
...
...
@@ -341,6 +344,12 @@ HRESULT WINAPI RevokeDragDrop(
TRACE
(
"(%p)
\n
"
,
hwnd
);
if
(
!
IsWindow
(
hwnd
))
{
ERR
(
"invalid hwnd %p
\n
"
,
hwnd
);
return
DRAGDROP_E_INVALIDHWND
;
}
/*
* First, check if the window is already registered.
*/
...
...
dlls/ole32/tests/dragdrop.c
View file @
47432cba
...
...
@@ -145,6 +145,5 @@ START_TEST(dragdrop)
ok
(
droptarget_release_called
==
1
,
"DropTarget_Release should have been called once, not %d times
\n
"
,
droptarget_release_called
);
hr
=
RevokeDragDrop
(
NULL
);
todo_wine
ok
(
hr
==
DRAGDROP_E_INVALIDHWND
,
"RevokeDragDrop with NULL hwnd should return DRAGDROP_E_INVALIDHWND instead of 0x%08x
\n
"
,
hr
);
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment