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
7d6ee319
Commit
7d6ee319
authored
Jul 15, 1999
by
Eric Pouech
Committed by
Alexandre Julliard
Jul 15, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed return value for 'open' command.
Changed way of allocation open mci drivers (array => list).
parent
3bfbf3cc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
mcistring.c
multimedia/mcistring.c
+8
-8
No files found.
multimedia/mcistring.c
View file @
7d6ee319
...
...
@@ -17,16 +17,11 @@
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <assert.h>
#include "multimedia.h"
#include "digitalv.h"
#include "heap.h"
#include "ldt.h"
#include "user.h"
#include "driver.h"
#include "callback.h"
#include "winuser.h"
#include "debugtools.h"
#include "xmalloc.h"
...
...
@@ -84,7 +79,7 @@ _MCISTR_printtf(char *buf, UINT16 uDevType, DWORD timef, DWORD val)
case
MCI_FORMAT_SAMPLES
:
case
MCI_VD_FORMAT_TRACK
:
/*case MCI_SEQ_FORMAT_SONGPTR: sameas MCI_VD_FORMAT_TRACK */
sprintf
(
buf
,
"%ld"
,
val
);
sprintf
(
buf
,
"%ld"
,
val
);
break
;
case
MCI_FORMAT_HMS
:
/* well, the macros have the same content*/
...
...
@@ -434,6 +429,10 @@ MCISTR_Open(_MCISTR_PROTO_)
res
=
mciSendCommandA
(
0
,
MCI_OPEN
,
dwFlags
,
(
DWORD
)
pU
);
if
(
res
==
0
)
{
snprintf
(
lpstrReturnString
,
uReturnLength
,
"%d"
,
pU
->
openParams
.
wDeviceID
);
}
free
(
pU
->
openParams
.
lpstrElementName
);
free
(
pU
->
openParams
.
lpstrDeviceType
);
free
(
pU
->
openParams
.
lpstrAlias
);
...
...
@@ -2624,7 +2623,7 @@ DWORD WINAPI mciSendString16(LPCSTR lpstrCommand, LPSTR lpstrReturnString,
res
=
MCIERR_INVALID_DEVICE_NAME
;
goto
the_end
;
}
uDevTyp
=
MCI_GetDr
v
(
wDevID
)
->
modp
.
wType
;
uDevTyp
=
MCI_GetDr
iver
(
wDevID
)
->
wType
;
}
if
(
lpstrReturnString
&&
uReturnLength
>
0
)
...
...
@@ -2644,6 +2643,7 @@ DWORD WINAPI mciSendString16(LPCSTR lpstrCommand, LPSTR lpstrReturnString,
res
=
MCIERR_MISSING_COMMAND_STRING
;
}
the_end:
TRACE
(
"=> %d [%s]
\n
"
,
res
,
lpstrReturnString
);
free
(
keywords
);
free
(
cmd
);
return
res
;
}
...
...
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