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
696fb4f3
Commit
696fb4f3
authored
Feb 14, 2000
by
Eric Pouech
Committed by
Alexandre Julliard
Feb 14, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- fixed crash on mci channel tracing
- fixed 16 to 32 bit translation for MCI_BREAK and MCI_SYSINFO messages
parent
b96c6e2b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
mci.c
dlls/winmm/mci.c
+5
-5
No files found.
dlls/winmm/mci.c
View file @
696fb4f3
...
...
@@ -912,7 +912,7 @@ DWORD WINAPI mciSendStringA(LPCSTR lpstrCommand, LPSTR lpstrRet,
if
(
lpstrRet
&&
uRetLen
)
*
lpstrRet
=
'\0'
;
#define STR_OF(_x) (
((_x)&0xFF000000)?(char*)(_x):"?"
)
#define STR_OF(_x) (
IsBadReadPtr((char*)_x,1)?"?":(char*)(_x)
)
TRACE
(
"[%d, %s, %08lx, %08lx/%s %08lx/%s %08lx/%s %08lx/%s %08lx/%s %08lx/%s]
\n
"
,
wmd
->
wDeviceID
,
MCI_MessageToString
(
MCI_GetMessage
(
lpCmd
)),
dwFlags
,
data
[
0
],
STR_OF
(
data
[
0
]),
data
[
1
],
STR_OF
(
data
[
1
]),
...
...
@@ -2343,11 +2343,11 @@ DWORD MCI_SendCommand(UINT wDevID, UINT16 wMsg, DWORD dwParam1,
if
(
bFrom32
)
{
dwRet
=
MCI_SysInfo
(
wDevID
,
dwParam1
,
(
LPMCI_SYSINFO_PARMSA
)
dwParam2
);
}
else
{
switch
(
MCI_MapMsg16To32A
(
0
,
w
DevID
,
&
dwParam2
))
{
switch
(
MCI_MapMsg16To32A
(
0
,
w
Msg
,
&
dwParam2
))
{
case
MCI_MAP_OK
:
case
MCI_MAP_OKMEM
:
dwRet
=
MCI_SysInfo
(
wDevID
,
dwParam1
,
(
LPMCI_SYSINFO_PARMSA
)
dwParam2
);
MCI_UnMapMsg16To32A
(
0
,
w
DevID
,
dwParam2
);
MCI_UnMapMsg16To32A
(
0
,
w
Msg
,
dwParam2
);
break
;
default:
break
;
/* so that gcc doesnot bark */
}
...
...
@@ -2357,11 +2357,11 @@ DWORD MCI_SendCommand(UINT wDevID, UINT16 wMsg, DWORD dwParam1,
if
(
bFrom32
)
{
dwRet
=
MCI_Break
(
wDevID
,
dwParam1
,
(
LPMCI_BREAK_PARMS
)
dwParam2
);
}
else
{
switch
(
MCI_MapMsg16To32A
(
0
,
w
DevID
,
&
dwParam2
))
{
switch
(
MCI_MapMsg16To32A
(
0
,
w
Msg
,
&
dwParam2
))
{
case
MCI_MAP_OK
:
case
MCI_MAP_OKMEM
:
dwRet
=
MCI_Break
(
wDevID
,
dwParam1
,
(
LPMCI_BREAK_PARMS
)
dwParam2
);
MCI_UnMapMsg16To32A
(
0
,
w
DevID
,
dwParam2
);
MCI_UnMapMsg16To32A
(
0
,
w
Msg
,
dwParam2
);
break
;
default:
break
;
/* so that gcc does not bark */
}
...
...
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