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
cfcc9e10
Commit
cfcc9e10
authored
Oct 28, 2002
by
Eric Pouech
Committed by
Alexandre Julliard
Oct 28, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed mciSendString debug reporting when an error occurs (spotted by
Erland Lewin).
parent
48f860cb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
mci.c
dlls/winmm/mci.c
+5
-4
No files found.
dlls/winmm/mci.c
View file @
cfcc9e10
...
...
@@ -799,11 +799,11 @@ static DWORD MCI_ParseOptArgs(LPDWORD data, int _offset, LPCSTR lpCmd,
/**************************************************************************
* MCI_HandleReturnValues [internal]
*/
static
DWORD
MCI_HandleReturnValues
(
DWORD
dwRet
,
LPWINE_MCIDRIVER
wmd
,
LPCSTR
lpCmd
,
static
DWORD
MCI_HandleReturnValues
(
DWORD
dwRet
,
LPWINE_MCIDRIVER
wmd
,
DWORD
retType
,
LPDWORD
data
,
LPSTR
lpstrRet
,
UINT
uRetLen
)
{
if
(
lpstrRet
)
{
switch
(
MCI_GetReturnType
(
lpCmd
)
)
{
switch
(
retType
)
{
case
0
:
/* nothing to return */
break
;
case
MCI_INTEGER
:
...
...
@@ -875,6 +875,7 @@ DWORD WINAPI mciSendStringA(LPCSTR lpstrCommand, LPSTR lpstrRet,
DWORD
dwFlags
=
0
,
dwRet
=
0
;
int
offset
=
0
;
DWORD
data
[
MCI_DATA_SIZE
];
DWORD
retType
;
LPCSTR
lpCmd
=
0
;
LPSTR
devAlias
=
NULL
;
BOOL
bAutoOpen
=
FALSE
;
...
...
@@ -1005,7 +1006,7 @@ DWORD WINAPI mciSendStringA(LPCSTR lpstrCommand, LPSTR lpstrRet,
}
/* set return information */
switch
(
MCI_GetReturnType
(
lpCmd
))
{
switch
(
retType
=
MCI_GetReturnType
(
lpCmd
))
{
case
0
:
offset
=
1
;
break
;
case
MCI_INTEGER
:
offset
=
2
;
break
;
case
MCI_STRING
:
data
[
1
]
=
(
DWORD
)
lpstrRet
;
data
[
2
]
=
uRetLen
;
offset
=
3
;
break
;
...
...
@@ -1043,7 +1044,7 @@ DWORD WINAPI mciSendStringA(LPCSTR lpstrCommand, LPSTR lpstrRet,
dwRet
=
MCI_SendCommand
(
wmd
->
wDeviceID
,
MCI_GetMessage
(
lpCmd
),
dwFlags
,
(
DWORD
)
data
,
TRUE
);
}
TRACE
(
"=> 1/ %lx (%s)
\n
"
,
dwRet
,
lpstrRet
);
dwRet
=
MCI_HandleReturnValues
(
dwRet
,
wmd
,
lpCmd
,
data
,
lpstrRet
,
uRetLen
);
dwRet
=
MCI_HandleReturnValues
(
dwRet
,
wmd
,
retType
,
data
,
lpstrRet
,
uRetLen
);
TRACE
(
"=> 2/ %lx (%s)
\n
"
,
dwRet
,
lpstrRet
);
errCleanUp:
...
...
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