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
88219db8
Commit
88219db8
authored
Dec 29, 2009
by
Rob Shearman
Committed by
Alexandre Julliard
Dec 30, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Handle SetClipboardData failing in OLE clipboard functions.
parent
36bfaea9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
clipboard.c
dlls/ole32/clipboard.c
+10
-2
No files found.
dlls/ole32/clipboard.c
View file @
88219db8
...
...
@@ -1701,7 +1701,11 @@ static HRESULT set_clipboard_formats(ole_clipbrd *clipbrd, IDataObject *data)
td_offs_to_ptr
(
clipbrd
->
cached_enum
,
(
DWORD_PTR
)
clipbrd
->
cached_enum
->
entries
[
idx
].
fmtetc
.
ptd
);
GlobalUnlock
(
priv_data_handle
);
SetClipboardData
(
ole_private_data_clipboard_format
,
priv_data_handle
);
if
(
!
SetClipboardData
(
ole_private_data_clipboard_format
,
priv_data_handle
))
{
GlobalFree
(
priv_data_handle
);
return
CLIPBRD_E_CANT_SET
;
}
return
S_OK
;
}
...
...
@@ -1759,7 +1763,11 @@ static HRESULT expose_marshalled_dataobject(ole_clipbrd *clipbrd, IDataObject *d
if
(
!
h
)
return
E_OUTOFMEMORY
;
SetClipboardData
(
wine_marshal_clipboard_format
,
h
);
if
(
!
SetClipboardData
(
wine_marshal_clipboard_format
,
h
))
{
GlobalFree
(
h
);
return
CLIPBRD_E_CANT_SET
;
}
return
S_OK
;
}
...
...
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