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
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
8 deletions
+4
-8
internal.c
dlls/msacm/internal.c
+4
-8
No files found.
dlls/msacm/internal.c
View file @
91f3fc7d
...
...
@@ -73,8 +73,7 @@ static BOOL MSACM_FillCache(PWINE_ACMDRIVERID padid)
HACMDRIVER
had
=
0
;
int
ntag
;
ACMDRIVERDETAILSW
add
;
ACMFORMATDETAILSW
aftd
;
WAVEFORMATEX
wfx
;
ACMFORMATTAGDETAILSW
aftd
;
if
(
acmDriverOpen
(
&
had
,
(
HACMDRIVERID
)
padid
,
0
)
!=
0
)
return
FALSE
;
...
...
@@ -95,18 +94,15 @@ 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
);
...
...
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