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
55658d06
Commit
55658d06
authored
Dec 20, 2008
by
Nikolay Sivov
Committed by
Alexandre Julliard
Dec 22, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Fix return value for IDataObject_GetData.
parent
0b3b6e67
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
clipboard.c
dlls/ole32/clipboard.c
+2
-1
clipboard.c
dlls/ole32/tests/clipboard.c
+1
-2
No files found.
dlls/ole32/clipboard.c
View file @
55658d06
...
...
@@ -1246,7 +1246,8 @@ static HRESULT WINAPI OLEClipbrd_IDataObject_GetData(
}
if
(
pformatetcIn
->
lindex
!=
-
1
)
return
DV_E_LINDEX
;
return
DV_E_FORMATETC
;
if
(
(
pformatetcIn
->
tymed
&
TYMED_HGLOBAL
)
!=
TYMED_HGLOBAL
)
return
DV_E_TYMED
;
/*
...
...
dlls/ole32/tests/clipboard.c
View file @
55658d06
...
...
@@ -200,7 +200,7 @@ static HRESULT WINAPI DataObjectImpl_GetData(IDataObject* iface, FORMATETC *pfor
DataObjectImpl_GetData_calls
++
;
if
(
pformatetc
->
lindex
!=
-
1
)
return
DV_E_
LINDEX
;
return
DV_E_
FORMATETC
;
if
(
!
(
pformatetc
->
tymed
&
TYMED_HGLOBAL
))
return
DV_E_TYMED
;
...
...
@@ -400,7 +400,6 @@ static void test_get_clipboard(void)
InitFormatEtc
(
fmtetc
,
CF_TEXT
,
TYMED_HGLOBAL
);
fmtetc
.
lindex
=
256
;
hr
=
IDataObject_GetData
(
data_obj
,
&
fmtetc
,
&
stgmedium
);
todo_wine
ok
(
hr
==
DV_E_FORMATETC
||
broken
(
hr
==
S_OK
),
"IDataObject_GetData should have failed with DV_E_FORMATETC instead of 0x%08x
\n
"
,
hr
);
if
(
hr
==
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