Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
cfb1f130
Commit
cfb1f130
authored
Jul 26, 2017
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jul 26, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmloader: Remove a now redundant helper function.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
f680ccb8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
20 deletions
+3
-20
loader.c
dlls/dmloader/loader.c
+1
-20
loader.c
dlls/dmloader/tests/loader.c
+2
-0
No files found.
dlls/dmloader/loader.c
View file @
cfb1f130
...
@@ -111,25 +111,6 @@ static HRESULT DMUSIC_CopyDescriptor(DMUS_OBJECTDESC *pDst, DMUS_OBJECTDESC *pSr
...
@@ -111,25 +111,6 @@ static HRESULT DMUSIC_CopyDescriptor(DMUS_OBJECTDESC *pDst, DMUS_OBJECTDESC *pSr
return
S_OK
;
return
S_OK
;
}
}
static
BOOL
DMUSIC_IsValidLoadableClass
(
REFCLSID
pClassID
)
{
if
(
IsEqualCLSID
(
pClassID
,
&
CLSID_DirectMusicAudioPathConfig
)
||
IsEqualCLSID
(
pClassID
,
&
CLSID_DirectMusicBand
)
||
IsEqualCLSID
(
pClassID
,
&
CLSID_DirectMusicContainer
)
||
IsEqualCLSID
(
pClassID
,
&
CLSID_DirectMusicCollection
)
||
IsEqualCLSID
(
pClassID
,
&
CLSID_DirectMusicChordMap
)
||
IsEqualCLSID
(
pClassID
,
&
CLSID_DirectMusicSegment
)
||
IsEqualCLSID
(
pClassID
,
&
CLSID_DirectMusicScript
)
||
IsEqualCLSID
(
pClassID
,
&
CLSID_DirectMusicSong
)
||
IsEqualCLSID
(
pClassID
,
&
CLSID_DirectMusicStyle
)
||
IsEqualCLSID
(
pClassID
,
&
CLSID_DirectMusicGraph
)
||
IsEqualCLSID
(
pClassID
,
&
CLSID_DirectSoundWave
)
||
IsEqualCLSID
(
pClassID
,
&
GUID_DirectMusicAllTypes
))
return
TRUE
;
else
return
FALSE
;
}
/*****************************************************************************
/*****************************************************************************
* IDirectMusicLoaderImpl implementation
* IDirectMusicLoaderImpl implementation
*/
*/
...
@@ -599,7 +580,7 @@ static HRESULT WINAPI IDirectMusicLoaderImpl_ScanDirectory(IDirectMusicLoader8 *
...
@@ -599,7 +580,7 @@ static HRESULT WINAPI IDirectMusicLoaderImpl_ScanDirectory(IDirectMusicLoader8 *
HRESULT
result
;
HRESULT
result
;
TRACE
(
"(%p, %s, %s, %s)
\n
"
,
This
,
debugstr_dmguid
(
rguidClass
),
debugstr_w
(
pwzFileExtension
),
TRACE
(
"(%p, %s, %s, %s)
\n
"
,
This
,
debugstr_dmguid
(
rguidClass
),
debugstr_w
(
pwzFileExtension
),
debugstr_w
(
pwzScanFileName
));
debugstr_w
(
pwzScanFileName
));
if
(
IsEqualGUID
(
rguidClass
,
&
GUID_DirectMusicAllTypes
)
||
!
DMUSIC_IsValidLoadableClass
(
rguidClass
)
)
{
if
(
index_from_class
(
rguidClass
)
<=
0
)
{
ERR
(
": rguidClass invalid CLSID
\n
"
);
ERR
(
": rguidClass invalid CLSID
\n
"
);
return
REGDB_E_CLASSNOTREG
;
return
REGDB_E_CLASSNOTREG
;
}
}
...
...
dlls/dmloader/tests/loader.c
View file @
cfb1f130
...
@@ -87,6 +87,8 @@ static void test_directory(void)
...
@@ -87,6 +87,8 @@ static void test_directory(void)
IDirectMusicLoader_SetSearchDirectory
(
loader
,
NULL
,
path
,
0
);
/* Crashes on Windows */
IDirectMusicLoader_SetSearchDirectory
(
loader
,
NULL
,
path
,
0
);
/* Crashes on Windows */
hr
=
IDirectMusicLoader_SetSearchDirectory
(
loader
,
&
IID_IDirectMusicLoader8
,
path
,
0
);
hr
=
IDirectMusicLoader_SetSearchDirectory
(
loader
,
&
IID_IDirectMusicLoader8
,
path
,
0
);
ok
(
hr
==
S_OK
,
"SetSearchDirectory failed with %#x
\n
"
,
hr
);
ok
(
hr
==
S_OK
,
"SetSearchDirectory failed with %#x
\n
"
,
hr
);
hr
=
IDirectMusicLoader_ScanDirectory
(
loader
,
&
GUID_DirectMusicAllTypes
,
con
,
NULL
);
ok
(
hr
==
REGDB_E_CLASSNOTREG
,
"ScanDirectory failed, received %#x
\n
"
,
hr
);
/* NULL extension is not an error */
/* NULL extension is not an error */
hr
=
IDirectMusicLoader_ScanDirectory
(
loader
,
&
CLSID_DirectSoundWave
,
NULL
,
NULL
);
hr
=
IDirectMusicLoader_ScanDirectory
(
loader
,
&
CLSID_DirectSoundWave
,
NULL
,
NULL
);
...
...
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