Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
aa3ad44e
Commit
aa3ad44e
authored
Mar 04, 2008
by
Mikołaj Zalewski
Committed by
Alexandre Julliard
Mar 05, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Improve SHRegisterDragDrop and SHRevokeDragDrop.
parent
b9a0b1b4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
6 deletions
+23
-6
shellord.c
dlls/shell32/shellord.c
+23
-6
No files found.
dlls/shell32/shellord.c
View file @
aa3ad44e
...
...
@@ -446,9 +446,12 @@ int WINAPIV ShellMessageBoxA(
/*************************************************************************
* SHRegisterDragDrop [SHELL32.86]
*
* Probably equivalent to RegisterDragDrop but under Windows 9
x
it could use the
* Probably equivalent to RegisterDragDrop but under Windows 9
5
it could use the
* shell32 built-in "mini-COM" without the need to load ole32.dll - see SHLoadOLE
* for details
* for details. Under Windows 98 this function initializes the true OLE when called
* the first time, on XP always returns E_OUTOFMEMORY and it got removed from Vista.
*
* We follow Windows 98 behaviour.
*
* NOTES
* exported by ordinal
...
...
@@ -460,16 +463,30 @@ HRESULT WINAPI SHRegisterDragDrop(
HWND
hWnd
,
LPDROPTARGET
pDropTarget
)
{
FIXME
(
"(%p,%p):stub.
\n
"
,
hWnd
,
pDropTarget
);
static
BOOL
ole_initialized
=
FALSE
;
HRESULT
hr
;
TRACE
(
"(%p,%p)
\n
"
,
hWnd
,
pDropTarget
);
if
(
!
ole_initialized
)
{
hr
=
OleInitialize
(
NULL
);
if
(
FAILED
(
hr
))
return
hr
;
ole_initialized
=
TRUE
;
}
return
RegisterDragDrop
(
hWnd
,
pDropTarget
);
}
/*************************************************************************
* SHRevokeDragDrop [SHELL32.87]
*
* Probably equivalent to RevokeDragDrop but under Windows 9
x
it could use the
* Probably equivalent to RevokeDragDrop but under Windows 9
5
it could use the
* shell32 built-in "mini-COM" without the need to load ole32.dll - see SHLoadOLE
* for details
* for details. Function removed from Windows Vista.
*
* We call ole32 RevokeDragDrop which seems to work even if OleInitialize was
* not called.
*
* NOTES
* exported by ordinal
...
...
@@ -479,7 +496,7 @@ HRESULT WINAPI SHRegisterDragDrop(
*/
HRESULT
WINAPI
SHRevokeDragDrop
(
HWND
hWnd
)
{
FIXME
(
"(%p):stub.
\n
"
,
hWnd
);
TRACE
(
"(%p)
\n
"
,
hWnd
);
return
RevokeDragDrop
(
hWnd
);
}
...
...
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