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
91f3fc7d
Commit
91f3fc7d
authored
Feb 08, 2002
by
Eric Pouech
Committed by
Alexandre Julliard
Feb 08, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug in cache init.
parent
1282ef94
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
13 deletions
+9
-13
internal.c
dlls/msacm/internal.c
+9
-13
No files found.
dlls/msacm/internal.c
View file @
91f3fc7d
...
...
@@ -70,11 +70,10 @@ BOOL MSACM_FindFormatTagInCache(WINE_ACMDRIVERID* padid, DWORD fmtTag, LPDWORD i
*/
static
BOOL
MSACM_FillCache
(
PWINE_ACMDRIVERID
padid
)
{
HACMDRIVER
had
=
0
;
int
ntag
;
ACMDRIVERDETAILSW
add
;
ACMFORMATDETAILSW
aftd
;
WAVEFORMATEX
wfx
;
HACMDRIVER
had
=
0
;
int
ntag
;
ACMDRIVERDETAILSW
add
;
ACMFORMATTAGDETAILSW
aftd
;
if
(
acmDriverOpen
(
&
had
,
(
HACMDRIVERID
)
padid
,
0
)
!=
0
)
return
FALSE
;
...
...
@@ -95,20 +94,17 @@ static BOOL MSACM_FillCache(PWINE_ACMDRIVERID padid)
padid
->
fdwSupport
=
add
.
fdwSupport
;
aftd
.
cbStruct
=
sizeof
(
aftd
);
/* don't care about retrieving full struct... so a bare WAVEFORMATEX should do */
aftd
.
pwfx
=
&
wfx
;
aftd
.
cbwfx
=
sizeof
(
wfx
);
for
(
ntag
=
0
;
ntag
<
add
.
cFormatTags
;
ntag
++
)
{
aftd
.
dwFormatIndex
=
ntag
;
if
(
MSACM_Message
(
had
,
ACMDM_FORMAT
_DETAILS
,
(
LPARAM
)
&
aftd
,
ACM_FORMAT
DETAILSF_INDEX
))
{
aftd
.
dwFormat
Tag
Index
=
ntag
;
if
(
MSACM_Message
(
had
,
ACMDM_FORMAT
TAG_DETAILS
,
(
LPARAM
)
&
aftd
,
ACM_FORMATTAG
DETAILSF_INDEX
))
{
TRACE
(
"IIOs (%s)
\n
"
,
padid
->
pszDriverAlias
);
goto
errCleanUp
;
}
padid
->
aFormatTag
[
ntag
].
dwFormatTag
=
aftd
.
dwFormatTag
;
padid
->
aFormatTag
[
ntag
].
cbwfx
=
aftd
.
cb
wfx
;
padid
->
aFormatTag
[
ntag
].
cbwfx
=
aftd
.
cb
FormatSize
;
}
acmDriverClose
(
had
,
0
);
return
TRUE
;
...
...
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