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
8accfc1d
Commit
8accfc1d
authored
Dec 17, 2005
by
Robert Reif
Committed by
Alexandre Julliard
Dec 17, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wineoss: Shorten MIDI names.
Shorten MIDI names to fit into 32 byte array without overflow.
parent
a67b6f49
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
midi.c
dlls/winmm/wineoss/midi.c
+3
-3
No files found.
dlls/winmm/wineoss/midi.c
View file @
8accfc1d
...
...
@@ -230,7 +230,7 @@ LRESULT OSS_MidiInit(void)
sinfo
.
device
=
i
;
status
=
ioctl
(
midiSeqFD
,
SNDCTL_SYNTH_INFO
,
&
sinfo
);
if
(
status
==
-
1
)
{
static
const
WCHAR
fmt
[]
=
{
'W'
,
'i'
,
'n'
,
'e'
,
' '
,
'O'
,
'S'
,
'S'
,
' '
,
'M'
,
'i'
,
'd'
,
'i'
,
' '
,
'O'
,
'u'
,
't'
,
' '
,
'('
,
'#'
,
'%'
,
'd'
,
')'
,
' '
,
'
-'
,
' '
,
'
d'
,
'i'
,
's'
,
'a'
,
'b'
,
'l'
,
'e'
,
'd'
,
0
};
static
const
WCHAR
fmt
[]
=
{
'W'
,
'i'
,
'n'
,
'e'
,
' '
,
'O'
,
'S'
,
'S'
,
' '
,
'M'
,
'i'
,
'd'
,
'i'
,
' '
,
'O'
,
'u'
,
't'
,
' '
,
'('
,
'#'
,
'%'
,
'd'
,
')'
,
' '
,
'd'
,
'i'
,
's'
,
'a'
,
'b'
,
'l'
,
'e'
,
'd'
,
0
};
ERR
(
"ioctl for synth info failed on %d, disabling it.
\n
"
,
i
);
wsprintfW
(
MidiOutDev
[
i
].
caps
.
szPname
,
fmt
,
i
);
...
...
@@ -310,7 +310,7 @@ LRESULT OSS_MidiInit(void)
/* Product Version. We simply say "1" */
MidiOutDev
[
numsynthdevs
+
i
].
caps
.
vDriverVersion
=
0x001
;
if
(
status
==
-
1
)
{
static
const
WCHAR
fmt
[]
=
{
'W'
,
'i'
,
'n'
,
'e'
,
' '
,
'O'
,
'S'
,
'S'
,
' '
,
'M'
,
'i'
,
'd'
,
'i'
,
' '
,
'O'
,
'u'
,
't'
,
' '
,
'('
,
'#'
,
'%'
,
'd'
,
')'
,
' '
,
'
-'
,
' '
,
'
d'
,
'i'
,
's'
,
'a'
,
'b'
,
'l'
,
'e'
,
'd'
,
0
};
static
const
WCHAR
fmt
[]
=
{
'W'
,
'i'
,
'n'
,
'e'
,
' '
,
'O'
,
'S'
,
'S'
,
' '
,
'M'
,
'i'
,
'd'
,
'i'
,
' '
,
'O'
,
'u'
,
't'
,
' '
,
'('
,
'#'
,
'%'
,
'd'
,
')'
,
' '
,
'd'
,
'i'
,
's'
,
'a'
,
'b'
,
'l'
,
'e'
,
'd'
,
0
};
wsprintfW
(
MidiOutDev
[
numsynthdevs
+
i
].
caps
.
szPname
,
fmt
,
numsynthdevs
+
i
);
MidiOutDev
[
numsynthdevs
+
i
].
bEnabled
=
FALSE
;
}
else
{
...
...
@@ -341,7 +341,7 @@ LRESULT OSS_MidiInit(void)
/* Product Version. We simply say "1" */
MidiInDev
[
i
].
caps
.
vDriverVersion
=
0x001
;
if
(
status
==
-
1
)
{
static
const
WCHAR
fmt
[]
=
{
'W'
,
'i'
,
'n'
,
'e'
,
' '
,
'O'
,
'S'
,
'S'
,
' '
,
'M'
,
'i'
,
'd'
,
'i'
,
' '
,
'I'
,
'n'
,
' '
,
'('
,
'#'
,
'%'
,
'd'
,
')'
,
' '
,
'
-'
,
' '
,
'
d'
,
'i'
,
's'
,
'a'
,
'b'
,
'l'
,
'e'
,
'd'
,
0
};
static
const
WCHAR
fmt
[]
=
{
'W'
,
'i'
,
'n'
,
'e'
,
' '
,
'O'
,
'S'
,
'S'
,
' '
,
'M'
,
'i'
,
'd'
,
'i'
,
' '
,
'I'
,
'n'
,
' '
,
'('
,
'#'
,
'%'
,
'd'
,
')'
,
' '
,
'd'
,
'i'
,
's'
,
'a'
,
'b'
,
'l'
,
'e'
,
'd'
,
0
};
wsprintfW
(
MidiInDev
[
i
].
caps
.
szPname
,
fmt
,
numsynthdevs
+
i
);
MidiInDev
[
i
].
state
=
-
1
;
}
else
{
...
...
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