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
fc49d98f
Commit
fc49d98f
authored
May 18, 2017
by
Huw Davies
Committed by
Alexandre Julliard
May 18, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Set the advise flags in CreateEntry().
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
77d1eba7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
datacache.c
dlls/ole32/datacache.c
+5
-5
No files found.
dlls/ole32/datacache.c
View file @
fc49d98f
...
@@ -322,7 +322,8 @@ static BOOL init_cache_entry(DataCacheEntry *entry, const FORMATETC *fmt, DWORD
...
@@ -322,7 +322,8 @@ static BOOL init_cache_entry(DataCacheEntry *entry, const FORMATETC *fmt, DWORD
return
TRUE
;
return
TRUE
;
}
}
static
HRESULT
DataCache_CreateEntry
(
DataCache
*
This
,
const
FORMATETC
*
formatetc
,
DataCacheEntry
**
cache_entry
,
BOOL
load
)
static
HRESULT
DataCache_CreateEntry
(
DataCache
*
This
,
const
FORMATETC
*
formatetc
,
DWORD
advf
,
DataCacheEntry
**
cache_entry
,
BOOL
load
)
{
{
HRESULT
hr
;
HRESULT
hr
;
...
@@ -336,7 +337,7 @@ static HRESULT DataCache_CreateEntry(DataCache *This, const FORMATETC *formatetc
...
@@ -336,7 +337,7 @@ static HRESULT DataCache_CreateEntry(DataCache *This, const FORMATETC *formatetc
if
(
!*
cache_entry
)
if
(
!*
cache_entry
)
return
E_OUTOFMEMORY
;
return
E_OUTOFMEMORY
;
if
(
!
init_cache_entry
(
*
cache_entry
,
formatetc
,
0
,
This
->
last_cache_id
))
if
(
!
init_cache_entry
(
*
cache_entry
,
formatetc
,
advf
,
This
->
last_cache_id
))
goto
fail
;
goto
fail
;
list_add_tail
(
&
This
->
cache_list
,
&
(
*
cache_entry
)
->
entry
);
list_add_tail
(
&
This
->
cache_list
,
&
(
*
cache_entry
)
->
entry
);
...
@@ -1275,7 +1276,7 @@ static HRESULT add_cache_entry( DataCache *This, const FORMATETC *fmt, IStream *
...
@@ -1275,7 +1276,7 @@ static HRESULT add_cache_entry( DataCache *This, const FORMATETC *fmt, IStream *
cache_entry
=
DataCache_GetEntryForFormatEtc
(
This
,
fmt
);
cache_entry
=
DataCache_GetEntryForFormatEtc
(
This
,
fmt
);
if
(
!
cache_entry
)
if
(
!
cache_entry
)
hr
=
DataCache_CreateEntry
(
This
,
fmt
,
&
cache_entry
,
TRUE
);
hr
=
DataCache_CreateEntry
(
This
,
fmt
,
0
,
&
cache_entry
,
TRUE
);
if
(
SUCCEEDED
(
hr
))
if
(
SUCCEEDED
(
hr
))
{
{
DataCacheEntry_DiscardData
(
cache_entry
);
DataCacheEntry_DiscardData
(
cache_entry
);
...
@@ -2023,12 +2024,11 @@ static HRESULT WINAPI DataCache_Cache(
...
@@ -2023,12 +2024,11 @@ static HRESULT WINAPI DataCache_Cache(
return
CACHE_S_SAMECACHE
;
return
CACHE_S_SAMECACHE
;
}
}
hr
=
DataCache_CreateEntry
(
This
,
pformatetc
,
&
cache_entry
,
FALSE
);
hr
=
DataCache_CreateEntry
(
This
,
pformatetc
,
advf
,
&
cache_entry
,
FALSE
);
if
(
SUCCEEDED
(
hr
))
if
(
SUCCEEDED
(
hr
))
{
{
*
pdwConnection
=
cache_entry
->
id
;
*
pdwConnection
=
cache_entry
->
id
;
cache_entry
->
advise_flags
=
advf
;
setup_sink
(
This
,
cache_entry
);
setup_sink
(
This
,
cache_entry
);
}
}
...
...
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