Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package Registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Yoann Laissus
wine
Commits
91f3fc7d
Commit
91f3fc7d
authored
23 years ago
by
Eric Pouech
Committed by
Alexandre Julliard
23 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fixed bug in cache init.
parent
1282ef94
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dlls/msacm/internal.c
+9
-13
9 additions, 13 deletions
dlls/msacm/internal.c
with
9 additions
and
13 deletions
dlls/msacm/internal.c
+
9
−
13
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_FORMATDETAILSF_INDEX
))
{
aftd
.
dwFormat
Tag
Index
=
ntag
;
if
(
MSACM_Message
(
had
,
ACMDM_FORMAT
TAG
_DETAILS
,
(
LPARAM
)
&
aftd
,
ACM_FORMAT
TAG
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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment