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
68325b38
Commit
68325b38
authored
Jan 03, 2024
by
Rémi Bernon
Committed by
Alexandre Julliard
Jan 04, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmloader: Avoid caching DMUS_OBJ_STREAM objects we can't load from cache.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=56117
parent
e7ded5dd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
loader.c
dlls/dmloader/loader.c
+6
-0
No files found.
dlls/dmloader/loader.c
View file @
68325b38
...
...
@@ -271,6 +271,7 @@ static struct cache_entry *find_cache_object(struct loader *This, DMUS_OBJECTDES
static
HRESULT
WINAPI
loader_GetObject
(
IDirectMusicLoader8
*
iface
,
DMUS_OBJECTDESC
*
pDesc
,
REFIID
riid
,
void
**
ppv
)
{
static
const
DWORD
source_flags
=
DMUS_OBJ_STREAM
|
DMUS_OBJ_FILENAME
|
DMUS_OBJ_URL
|
DMUS_OBJ_STREAM
;
struct
loader
*
This
=
impl_from_IDirectMusicLoader8
(
iface
);
HRESULT
result
=
S_OK
;
HRESULT
ret
=
S_OK
;
/* used at the end of function, to determine whether everything went OK */
...
...
@@ -426,6 +427,11 @@ static HRESULT WINAPI loader_GetObject(IDirectMusicLoader8 *iface, DMUS_OBJECTDE
/* add object to cache/overwrite existing info (if cache is enabled) */
bCache
=
is_cache_enabled
(
This
,
&
pDesc
->
guidClass
);
if
(
!
bCache
)
TRACE
(
": caching disabled
\n
"
);
else
if
((
pDesc
->
dwValidData
&
source_flags
)
==
DMUS_OBJ_STREAM
)
{
FIXME
(
"Skipping cache for DMUS_OBJ_STREAM object
\n
"
);
bCache
=
FALSE
;
}
else
{
if
(
!
pObjectEntry
)
...
...
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