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
575b0e14
Commit
575b0e14
authored
Apr 17, 2009
by
Huw Davies
Committed by
Alexandre Julliard
Apr 21, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Don't set cf_dataobject if we're clearing the clipboard.
parent
1e73a546
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
1 deletion
+18
-1
clipboard.c
dlls/ole32/clipboard.c
+2
-1
clipboard.c
dlls/ole32/tests/clipboard.c
+16
-0
No files found.
dlls/ole32/clipboard.c
View file @
575b0e14
...
...
@@ -1729,7 +1729,8 @@ HRESULT WINAPI OleSetClipboard(IDataObject* data)
hr
=
set_src_dataobject
(
clipbrd
,
data
);
if
(
FAILED
(
hr
))
goto
end
;
hr
=
set_dataobject_format
(
wnd
);
if
(
data
)
hr
=
set_dataobject_format
(
wnd
);
end:
...
...
dlls/ole32/tests/clipboard.c
View file @
575b0e14
...
...
@@ -595,6 +595,21 @@ static void test_enum_fmtetc(IDataObject *src)
IDataObject_Release
(
data
);
}
static
void
test_no_cf_dataobject
(
void
)
{
UINT
cf_dataobject
=
RegisterClipboardFormatA
(
"DataObject"
);
UINT
cf_ole_priv_data
=
RegisterClipboardFormatA
(
"Ole Private Data"
);
HANDLE
h
;
OpenClipboard
(
NULL
);
h
=
GetClipboardData
(
cf_dataobject
);
ok
(
!
h
,
"got %p
\n
"
,
h
);
h
=
GetClipboardData
(
cf_ole_priv_data
);
ok
(
!
h
,
"got %p
\n
"
,
h
);
CloseClipboard
();
}
static
void
test_cf_dataobject
(
IDataObject
*
data
)
{
UINT
cf
=
0
;
...
...
@@ -851,6 +866,7 @@ static void test_set_clipboard(void)
ok
(
OleSetClipboard
(
NULL
)
==
S_OK
,
"failed to clear clipboard, hr = 0x%08x
\n
"
,
hr
);
test_no_cf_dataobject
();
test_enum_fmtetc
(
NULL
);
ref
=
IDataObject_Release
(
data1
);
...
...
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