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
250b55c4
Commit
250b55c4
authored
Sep 28, 2010
by
Huw Davies
Committed by
Alexandre Julliard
Sep 28, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Call the draw_continue function.
parent
6c7dd939
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
datacache.c
dlls/ole32/datacache.c
+2
-0
ole2.c
dlls/ole32/tests/ole2.c
+17
-0
No files found.
dlls/ole32/datacache.c
View file @
250b55c4
...
...
@@ -1633,6 +1633,8 @@ static HRESULT WINAPI DataCache_Draw(
if
(
cache_entry
->
stgmedium
.
tymed
==
TYMED_NULL
)
continue
;
if
(
pfnContinue
&&
!
pfnContinue
(
dwContinue
))
return
E_ABORT
;
switch
(
cache_entry
->
data_cf
)
{
case
CF_METAFILEPICT
:
...
...
dlls/ole32/tests/ole2.c
View file @
250b55c4
...
...
@@ -897,6 +897,12 @@ static BOOL STDMETHODCALLTYPE draw_continue(ULONG_PTR param)
return
TRUE
;
}
static
BOOL
STDMETHODCALLTYPE
draw_continue_false
(
ULONG_PTR
param
)
{
CHECK_EXPECTED_METHOD
(
"draw_continue_false"
);
return
FALSE
;
}
static
HRESULT
WINAPI
AdviseSink_QueryInterface
(
IAdviseSink
*
iface
,
REFIID
riid
,
void
**
ppv
)
{
if
(
IsEqualIID
(
riid
,
&
IID_IAdviseSink
)
||
IsEqualIID
(
riid
,
&
IID_IUnknown
))
...
...
@@ -1117,6 +1123,7 @@ static void test_data_cache(void)
{
"AdviseSink_OnViewChange"
,
0
},
{
"AdviseSink_OnViewChange"
,
0
},
{
"draw_continue"
,
1
},
{
"draw_continue_false"
,
1
},
{
"DataObject_DAdvise"
,
0
},
{
"DataObject_DAdvise"
,
0
},
{
"DataObject_DUnadvise"
,
0
},
...
...
@@ -1268,6 +1275,16 @@ static void test_data_cache(void)
hr
=
IViewObject_Draw
(
pViewObject
,
DVASPECT_CONTENT
,
-
1
,
NULL
,
NULL
,
NULL
,
hdcMem
,
&
rcBounds
,
NULL
,
draw_continue
,
0xdeadbeef
);
ok
(
hr
==
OLE_E_BLANK
,
"IViewObject_Draw with uncached aspect should have returned OLE_E_BLANK instead of 0x%08x
\n
"
,
hr
);
/* a NULL draw_continue fn ptr */
hr
=
IViewObject_Draw
(
pViewObject
,
DVASPECT_ICON
,
-
1
,
NULL
,
NULL
,
NULL
,
hdcMem
,
&
rcBounds
,
NULL
,
NULL
,
0xdeadbeef
);
ok_ole_success
(
hr
,
"IViewObject_Draw"
);
/* draw_continue that returns FALSE to abort drawing */
hr
=
IViewObject_Draw
(
pViewObject
,
DVASPECT_ICON
,
-
1
,
NULL
,
NULL
,
NULL
,
hdcMem
,
&
rcBounds
,
NULL
,
draw_continue_false
,
0xdeadbeef
);
ok
(
hr
==
E_ABORT
||
broken
(
hr
==
S_OK
),
/* win9x may skip the callbacks */
"IViewObject_Draw with draw_continue_false returns 0x%08x
\n
"
,
hr
);
DeleteDC
(
hdcMem
);
hr
=
IOleCacheControl_OnRun
(
pOleCacheControl
,
&
DataObject
);
...
...
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