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
8e361310
Commit
8e361310
authored
Mar 15, 1999
by
Eric Pouech
Committed by
Alexandre Julliard
Mar 15, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed how list of loadable MCI drivers is obtained.
parent
272be7b9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
15 deletions
+32
-15
init.c
multimedia/init.c
+32
-15
No files found.
multimedia/init.c
View file @
8e361310
...
...
@@ -252,27 +252,44 @@ BOOL MULTIMEDIA_MidiInit(void)
return
TRUE
;
}
extern
int
mciInstalledCount
;
extern
int
mciInstalledListLen
;
extern
LPSTR
lpmciInstallNames
;
BOOL
MULTIMEDIA_MciInit
(
void
)
{
int
len
;
LPSTR
ptr
;
LPSTR
SysFile
=
"SYSTEM.INI"
;
LPSTR
ptr1
,
ptr2
;
char
buffer
[
1024
];
mciInstalledCount
=
0
;
mciInstalledListLen
=
0
;
ptr
=
lpmciInstallNames
=
xmalloc
(
2048
);
ptr1
=
lpmciInstallNames
=
xmalloc
(
2048
)
;
/* FIXME: should do also some registry diving here */
GetPrivateProfileStringA
(
"mci"
,
NULL
,
""
,
lpmciInstallNames
,
2000
,
SysFile
);
while
(
strlen
(
ptr
)
>
0
)
{
TRACE
(
mci
,
"---> '%s'
\n
"
,
ptr
);
len
=
strlen
(
ptr
)
+
1
;
ptr
+=
len
;
mciInstalledListLen
+=
len
;
if
(
PROFILE_GetWineIniString
(
"options"
,
"mci"
,
""
,
lpmciInstallNames
,
2048
)
>
0
)
{
TRACE
(
mci
,
"Wine => '%s'
\n
"
,
ptr1
);
while
((
ptr2
=
strchr
(
ptr1
,
':'
))
!=
0
)
{
*
ptr2
++
=
0
;
TRACE
(
mci
,
"---> '%s'
\n
"
,
ptr1
);
mciInstalledCount
++
;
ptr1
=
ptr2
;
}
mciInstalledCount
++
;
TRACE
(
mci
,
"---> '%s'
\n
"
,
ptr1
);
ptr1
+=
strlen
(
ptr1
)
+
1
;
}
else
{
GetPrivateProfileStringA
(
"mci"
,
NULL
,
""
,
lpmciInstallNames
,
2048
,
"SYSTEM.INI"
);
while
(
strlen
(
ptr1
)
>
0
)
{
TRACE
(
mci
,
"---> '%s'
\n
"
,
ptr1
);
ptr1
+=
(
strlen
(
ptr1
)
+
1
);
mciInstalledCount
++
;
}
}
mciInstalledListLen
=
ptr1
-
lpmciInstallNames
;
if
(
PROFILE_GetWineIniString
(
"options"
,
"mciExternal"
,
""
,
buffer
,
sizeof
(
buffer
))
>
0
)
{
int
i
;
for
(
i
=
0
;
MCI_InternalDescriptors
[
i
].
uDevType
!=
0xFFFF
;
i
++
)
{
if
(
strstr
(
buffer
,
MCI_InternalDescriptors
[
i
].
lpstrName
)
!=
NULL
)
{
MCI_InternalDescriptors
[
i
].
uDevType
=
0
;
/* disable slot */
}
}
}
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