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
f88d00a2
Commit
f88d00a2
authored
Dec 12, 2002
by
Jeff Smith
Committed by
Alexandre Julliard
Dec 12, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MMDRV_GetDescription32 fix + a few cosmetic improvements.
parent
b42b9ddb
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
9 deletions
+15
-9
lolvldrv.c
dlls/winmm/lolvldrv.c
+7
-7
midi.c
dlls/winmm/wineoss/midi.c
+8
-2
No files found.
dlls/winmm/lolvldrv.c
View file @
f88d00a2
...
...
@@ -121,7 +121,7 @@ static BOOL MMDRV_GetDescription32(const char* fname, char* buf, int buflen)
goto
theEnd
;
if
(
!
(
pGetFileVersionInfoA
=
GetProcAddress
(
hmodule
,
"GetFileVersionInfoA"
)))
goto
theEnd
;
if
(
!
(
pVerQueryValueA
=
GetProcAddress
(
hmodule
,
"
p
VerQueryValueA"
)))
if
(
!
(
pVerQueryValueA
=
GetProcAddress
(
hmodule
,
"VerQueryValueA"
)))
goto
theEnd
;
if
(
!
(
dw
=
pGetFileVersionInfoSizeA
(
ofs
.
szPathName
,
&
h
)))
E
((
"Can't get FVIS
\n
"
));
...
...
@@ -166,7 +166,7 @@ UINT MMDRV_GetNum(UINT type)
}
/**************************************************************************
*
WINE
_Message [internal]
*
MMDRV
_Message [internal]
*/
DWORD
MMDRV_Message
(
LPWINE_MLD
mld
,
WORD
wMsg
,
DWORD
dwParam1
,
DWORD
dwParam2
,
BOOL
bFrom32
)
...
...
@@ -178,7 +178,7 @@ DWORD MMDRV_Message(LPWINE_MLD mld, WORD wMsg, DWORD dwParam1,
WINMM_MapType
map
;
int
devID
;
TRACE
(
"(%s %u %u 0x%08lx 0x%08lx 0x%08lx %c)
!
\n
"
,
TRACE
(
"(%s %u %u 0x%08lx 0x%08lx 0x%08lx %c)
\n
"
,
llTypes
[
mld
->
type
].
typestr
,
mld
->
uDeviceID
,
wMsg
,
mld
->
dwDriverInstance
,
dwParam1
,
dwParam2
,
bFrom32
?
'Y'
:
'N'
);
...
...
@@ -212,7 +212,7 @@ DWORD MMDRV_Message(LPWINE_MLD mld, WORD wMsg, DWORD dwParam1,
assert
(
part
->
u
.
fnMessage32
);
if
(
bFrom32
)
{
TRACE
(
"Calling message(dev=%u msg=%u usr=0x%08lx p1=0x%08lx p2=0x%08lx
\n
"
,
TRACE
(
"Calling message(dev=%u msg=%u usr=0x%08lx p1=0x%08lx p2=0x%08lx
)
\n
"
,
mld
->
uDeviceID
,
wMsg
,
mld
->
dwDriverInstance
,
dwParam1
,
dwParam2
);
ret
=
part
->
u
.
fnMessage32
(
mld
->
uDeviceID
,
wMsg
,
mld
->
dwDriverInstance
,
dwParam1
,
dwParam2
);
TRACE
(
"=> %lu
\n
"
,
ret
);
...
...
@@ -228,7 +228,7 @@ DWORD MMDRV_Message(LPWINE_MLD mld, WORD wMsg, DWORD dwParam1,
break
;
case
WINMM_MAP_OK
:
case
WINMM_MAP_OKMEM
:
TRACE
(
"Calling message(dev=%u msg=%u usr=0x%08lx p1=0x%08lx p2=0x%08lx
\n
"
,
TRACE
(
"Calling message(dev=%u msg=%u usr=0x%08lx p1=0x%08lx p2=0x%08lx
)
\n
"
,
mld
->
uDeviceID
,
wMsg
,
mld
->
dwDriverInstance
,
dwParam1
,
dwParam2
);
ret
=
part
->
u
.
fnMessage32
(
mld
->
uDeviceID
,
wMsg
,
mld
->
dwDriverInstance
,
dwParam1
,
dwParam2
);
...
...
@@ -257,7 +257,7 @@ DWORD MMDRV_Message(LPWINE_MLD mld, WORD wMsg, DWORD dwParam1,
break
;
case
WINMM_MAP_OK
:
case
WINMM_MAP_OKMEM
:
TRACE
(
"Calling message(dev=%u msg=%u usr=0x%08lx p1=0x%08lx p2=0x%08lx
\n
"
,
TRACE
(
"Calling message(dev=%u msg=%u usr=0x%08lx p1=0x%08lx p2=0x%08lx
)
\n
"
,
mld
->
uDeviceID
,
wMsg
,
mld
->
dwDriverInstance
,
dwParam1
,
dwParam2
);
ret
=
pFnCallMMDrvFunc16
((
FARPROC16
)
part
->
u
.
fnMessage16
,
mld
->
uDeviceID
,
wMsg
,
mld
->
dwDriverInstance
,
...
...
@@ -272,7 +272,7 @@ DWORD MMDRV_Message(LPWINE_MLD mld, WORD wMsg, DWORD dwParam1,
break
;
}
}
else
{
TRACE
(
"Calling message(dev=%u msg=%u usr=0x%08lx p1=0x%08lx p2=0x%08lx
\n
"
,
TRACE
(
"Calling message(dev=%u msg=%u usr=0x%08lx p1=0x%08lx p2=0x%08lx
)
\n
"
,
mld
->
uDeviceID
,
wMsg
,
mld
->
dwDriverInstance
,
dwParam1
,
dwParam2
);
ret
=
pFnCallMMDrvFunc16
((
FARPROC16
)
part
->
u
.
fnMessage16
,
mld
->
uDeviceID
,
wMsg
,
mld
->
dwDriverInstance
,
...
...
dlls/winmm/wineoss/midi.c
View file @
f88d00a2
...
...
@@ -102,7 +102,7 @@ static int midiOpenSeq(void);
static
int
midiCloseSeq
(
void
);
/**************************************************************************
* unixToWindowsDeviceType [internal]
*
MIDI_
unixToWindowsDeviceType [internal]
*
* return the Windows equivalent to a Unix Device Type
*
...
...
@@ -432,6 +432,9 @@ SEQ_DEFINEBUF(1024);
*/
/**************************************************************************
* seqbuf_dump [internal]
*
* Used by SEQ_DUMPBUF to flush the buffer.
*
*/
void
seqbuf_dump
(
void
)
{
...
...
@@ -448,6 +451,9 @@ void seqbuf_dump(void)
}
}
/**************************************************************************
* midRecieveChar [internal]
*/
static
void
midReceiveChar
(
WORD
wDevID
,
unsigned
char
value
,
DWORD
dwTime
)
{
DWORD
toSend
=
0
;
...
...
@@ -1496,7 +1502,7 @@ static DWORD modPrepare(WORD wDevID, LPMIDIHDR lpMidiHdr, DWORD dwSize)
return
MMSYSERR_NOTENABLED
;
}
/* MS doc says t
ah
t dwFlags must be set to zero, but (kinda funny) MS mciseq drivers
/* MS doc says t
ha
t dwFlags must be set to zero, but (kinda funny) MS mciseq drivers
* asks to prepare MIDIHDR which dwFlags != 0.
* So at least check for the inqueue flag
*/
...
...
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