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
bd9eb3b5
Commit
bd9eb3b5
authored
Apr 16, 2009
by
Huw Davies
Committed by
Alexandre Julliard
Apr 16, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Don't pass a window if we're reading from the clipboard.
parent
6526b570
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
clipboard.c
dlls/ole32/clipboard.c
+2
-3
No files found.
dlls/ole32/clipboard.c
View file @
bd9eb3b5
...
...
@@ -902,7 +902,7 @@ static HRESULT WINAPI OLEClipbrd_IDataObject_GetData(
/*
* Otherwise, get the data from the windows clipboard using GetClipboardData
*/
if
(
!
OpenClipboard
(
theOleClipboard
->
window
))
return
CLIPBRD_E_CANT_OPEN
;
if
(
!
OpenClipboard
(
NULL
))
return
CLIPBRD_E_CANT_OPEN
;
h
=
GetClipboardData
(
pformatetcIn
->
cfFormat
);
hr
=
dup_global_mem
(
h
,
GMEM_MOVEABLE
,
&
hData
);
...
...
@@ -1006,7 +1006,6 @@ static HRESULT WINAPI OLEClipbrd_IDataObject_EnumFormatEtc(
IEnumFORMATETC
**
enum_fmt
)
{
HRESULT
hr
=
S_OK
;
ole_clipbrd
*
This
=
impl_from_IDataObject
(
iface
);
HGLOBAL
handle
;
ole_priv_data
*
data
=
NULL
;
...
...
@@ -1015,7 +1014,7 @@ static HRESULT WINAPI OLEClipbrd_IDataObject_EnumFormatEtc(
*
enum_fmt
=
NULL
;
if
(
dwDirection
!=
DATADIR_GET
)
return
E_NOTIMPL
;
if
(
!
OpenClipboard
(
This
->
window
)
)
return
CLIPBRD_E_CANT_OPEN
;
if
(
!
OpenClipboard
(
NULL
)
)
return
CLIPBRD_E_CANT_OPEN
;
handle
=
GetClipboardData
(
ole_priv_data_clipboard_format
);
if
(
handle
)
...
...
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