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
fc551563
Commit
fc551563
authored
Oct 15, 2003
by
Dimitrie O. Paun
Committed by
Alexandre Julliard
Oct 15, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge win.ini/[mci extensions] into the registry.
parent
19c36fe7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
44 deletions
+10
-44
mci.c
dlls/winmm/mci.c
+10
-5
win.ini
documentation/samples/win.ini
+0
-39
No files found.
dlls/winmm/mci.c
View file @
fc551563
...
...
@@ -35,6 +35,7 @@
#include "mmsystem.h"
#include "winuser.h"
#include "winnls.h"
#include "winreg.h"
#include "digitalv.h"
#include "winemm.h"
...
...
@@ -185,13 +186,17 @@ const char* MCI_MessageToString(UINT16 wMsg)
static
DWORD
MCI_GetDevTypeFromFileName
(
LPCSTR
fileName
,
LPSTR
buf
,
UINT
len
)
{
LPSTR
tmp
;
HKEY
hKey
;
if
((
tmp
=
strrchr
(
fileName
,
'.'
)))
{
GetProfileStringA
(
"mci extensions"
,
tmp
+
1
,
"*"
,
buf
,
len
);
if
(
strcmp
(
buf
,
"*"
)
!=
0
)
{
return
0
;
}
TRACE
(
"No [mci extensions] entry for '%s' found.
\n
"
,
tmp
);
if
(
RegOpenKeyExA
(
HKEY_LOCAL_MACHINE
,
"SOFTWARE
\\
Microsoft
\\
Windows NT
\\
CurrentVersion
\\
MCI Extensions"
,
0
,
KEY_QUERY_VALUE
,
&
hKey
)
==
ERROR_SUCCESS
)
{
DWORD
dwLen
=
len
;
LONG
lRet
=
RegQueryValueExA
(
hKey
,
tmp
+
1
,
0
,
0
,
buf
,
&
dwLen
);
RegCloseKey
(
hKey
);
if
(
lRet
==
ERROR_SUCCESS
)
return
0
;
}
TRACE
(
"No ...
\\
MCI Extensions entry for '%s' found.
\n
"
,
tmp
);
}
return
MCIERR_EXTENSION_NOT_FOUND
;
}
...
...
documentation/samples/win.ini
deleted
100644 → 0
View file @
19c36fe7
[mci extensions]
cda
=
cdaudio
mid
=
sequencer
midi
=
sequencer
rmi
=
sequencer
;aif=MPEGVideo
aifc
=
MPEGVideo
;aiff=MPEGVideo
asf
=
MPEGVideo2
asx
=
MPEGVideo2
au
=
MPEGVideo
;avi=MPEGVideo
lsf
=
MPEGVideo2
lsx
=
MPEGVideo2
m1v
=
MPEGVideo
m3u
=
MPEGVideo
;mov=MPEGVideo
m3u
=
MPEGVideo
mp2
=
MPEGVideo
mp2v
=
MPEGVideo
mp3
=
MPEGVideo
mpa
=
MPEGVideo
mpe
=
MPEGVideo
mpeg
=
MPEGVideo
mpg
=
MPEGVideo
mpv
=
MPEGVideo
mpv2
=
MPEGVideo
;qt=MPEGVideo
snd
=
MPEGVideo
rmi
=
MPEGVideo
;wav=MPEGVideo
wav
=
waveaudio
wax
=
MPEGVideo2
wm
=
MPEGVideo2
wma
=
MPEGVideo2
wmp
=
MPEGVideo2
wmv
=
MPEGVideo2
wmx
=
MPEGVideo2
wvx
=
MPEGVideo2
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