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
6cf101c1
Commit
6cf101c1
authored
Jan 08, 2004
by
Eric Pouech
Committed by
Alexandre Julliard
Jan 08, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Applied to all MCI drivers Dmitry's fix for MCI_STATUS_TIME_FORMAT
(wasn't returning string resource ID). - Fixed mciseq when opened without a filename.
parent
fcd9732f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
12 deletions
+10
-12
mcianim.c
dlls/winmm/mcianim/mcianim.c
+1
-1
mcicda.c
dlls/winmm/mcicda/mcicda.c
+1
-1
mcimidi.c
dlls/winmm/mciseq/mcimidi.c
+7
-9
mciwave.c
dlls/winmm/mciwave/mciwave.c
+1
-1
No files found.
dlls/winmm/mcianim/mcianim.c
View file @
6cf101c1
...
...
@@ -460,7 +460,7 @@ static DWORD MCIANIM_mciStatus(UINT16 wDevID, DWORD dwFlags, LPMCI_STATUS_PARMS
return
0
;
case
MCI_STATUS_TIME_FORMAT
:
TRACE
(
"MCI_STATUS_TIME_FORMAT !
\n
"
);
lpParms
->
dwReturn
=
MAKEMCIRESOURCE
(
MCI_FORMAT_MILLISECONDS
,
MCI_FORMAT_MILLISECONDS
);
lpParms
->
dwReturn
=
MAKEMCIRESOURCE
(
MCI_FORMAT_MILLISECONDS
,
MCI_FORMAT_MILLISECONDS
_S
);
TRACE
(
"MCI_STATUS_TIME_FORMAT => %u
\n
"
,
LOWORD
(
lpParms
->
dwReturn
));
ret
=
MCI_RESOURCE_RETURNED
;
return
0
;
...
...
dlls/winmm/mcicda/mcicda.c
View file @
6cf101c1
...
...
@@ -647,7 +647,7 @@ static DWORD MCICDA_Status(UINT wDevID, DWORD dwFlags, LPMCI_STATUS_PARMS lpParm
ret
=
MCI_RESOURCE_RETURNED
;
break
;
case
MCI_STATUS_TIME_FORMAT
:
lpParms
->
dwReturn
=
MAKEMCIRESOURCE
(
wmcda
->
dwTimeFormat
,
wmcda
->
dwTimeFormat
);
lpParms
->
dwReturn
=
MAKEMCIRESOURCE
(
wmcda
->
dwTimeFormat
,
MCI_FORMAT_RETURN_BASE
+
wmcda
->
dwTimeFormat
);
TRACE
(
"MCI_STATUS_TIME_FORMAT=%08x!
\n
"
,
LOWORD
(
lpParms
->
dwReturn
));
ret
=
MCI_RESOURCE_RETURNED
;
break
;
...
...
dlls/winmm/mciseq/mcimidi.c
View file @
6cf101c1
...
...
@@ -67,7 +67,7 @@ typedef struct tagWINE_MCIMIDI {
WORD
wNotifyDeviceID
;
/* MCI device ID with a pending notification */
HANDLE
hCallback
;
/* Callback handle for pending notification */
HMMIO
hFile
;
/* mmio file handle open as Element */
LPSTR
lpstrElementName
;
/* Name of file
*/
LPSTR
lpstrElementName
;
/* Name of file (if any)
*/
LPSTR
lpstrCopyright
;
LPSTR
lpstrName
;
WORD
dwStatus
;
/* one from MCI_MODE_xxxx */
...
...
@@ -726,6 +726,7 @@ static DWORD MIDI_mciOpen(UINT wDevID, DWORD dwFlags, LPMCI_OPEN_PARMSA lpParms)
wmm
->
hFile
=
0
;
wmm
->
hMidi
=
0
;
wmm
->
lpstrElementName
=
NULL
;
dwDeviceID
=
lpParms
->
wDeviceID
;
TRACE
(
"wDevID=%04X (lpParams->wDeviceID=%08lX)
\n
"
,
wDevID
,
dwDeviceID
);
...
...
@@ -741,15 +742,12 @@ static DWORD MIDI_mciOpen(UINT wDevID, DWORD dwFlags, LPMCI_OPEN_PARMSA lpParms)
wmm
->
nUseCount
--
;
return
MCIERR_FILE_NOT_FOUND
;
}
}
else
{
wmm
->
hFile
=
0
;
wmm
->
lpstrElementName
=
HeapAlloc
(
GetProcessHeap
(),
0
,
strlen
(
lpParms
->
lpstrElementName
)
+
1
);
strcpy
(
wmm
->
lpstrElementName
,
lpParms
->
lpstrElementName
)
;
}
}
TRACE
(
"hFile=%p
\n
"
,
wmm
->
hFile
);
/* FIXME: should I get a strdup() of it instead? */
wmm
->
lpstrElementName
=
HeapAlloc
(
GetProcessHeap
(),
0
,
strlen
(
lpParms
->
lpstrElementName
)
+
1
);
strcpy
(
wmm
->
lpstrElementName
,
lpParms
->
lpstrElementName
);
wmm
->
lpstrCopyright
=
NULL
;
wmm
->
lpstrName
=
NULL
;
...
...
@@ -918,7 +916,7 @@ static DWORD MIDI_mciPlay(UINT wDevID, DWORD dwFlags, LPMCI_PLAY_PARMS lpParms)
if
(
wmm
==
NULL
)
return
MCIERR_INVALID_DEVICE_ID
;
if
(
wmm
->
hFile
==
0
)
{
WARN
(
"Can't play: no file '%s' !
\n
"
,
wmm
->
lpstrElementName
);
WARN
(
"Can't play: no file '%s' !
\n
"
,
debugstr_a
(
wmm
->
lpstrElementName
)
);
return
MCIERR_FILE_NOT_FOUND
;
}
...
...
@@ -1196,7 +1194,7 @@ static DWORD MIDI_mciRecord(UINT wDevID, DWORD dwFlags, LPMCI_RECORD_PARMS lpPar
if
(
wmm
==
0
)
return
MCIERR_INVALID_DEVICE_ID
;
if
(
wmm
->
hFile
==
0
)
{
WARN
(
"Can't find file='%s' !
\n
"
,
wmm
->
lpstrElementName
);
WARN
(
"Can't find file='%s' !
\n
"
,
debugstr_a
(
wmm
->
lpstrElementName
)
);
return
MCIERR_FILE_NOT_FOUND
;
}
start
=
1
;
end
=
99999
;
...
...
@@ -1430,7 +1428,7 @@ static DWORD MIDI_mciStatus(UINT wDevID, DWORD dwFlags, LPMCI_STATUS_PARMS lpPar
TRACE
(
"MCI_STATUS_READY = %u
\n
"
,
LOWORD
(
lpParms
->
dwReturn
));
break
;
case
MCI_STATUS_TIME_FORMAT
:
lpParms
->
dwReturn
=
MAKEMCIRESOURCE
(
wmm
->
dwMciTimeFormat
,
wmm
->
dwMciTimeFormat
);
lpParms
->
dwReturn
=
MAKEMCIRESOURCE
(
wmm
->
dwMciTimeFormat
,
MCI_FORMAT_RETURN_BASE
+
wmm
->
dwMciTimeFormat
);
TRACE
(
"MCI_STATUS_TIME_FORMAT => %u
\n
"
,
LOWORD
(
lpParms
->
dwReturn
));
ret
=
MCI_RESOURCE_RETURNED
;
break
;
...
...
dlls/winmm/mciwave/mciwave.c
View file @
6cf101c1
...
...
@@ -1383,7 +1383,7 @@ static DWORD WAVE_mciStatus(UINT wDevID, DWORD dwFlags, LPMCI_STATUS_PARMS lpPar
ret
=
MCI_RESOURCE_RETURNED
;
break
;
case
MCI_STATUS_TIME_FORMAT
:
lpParms
->
dwReturn
=
MAKEMCIRESOURCE
(
wmw
->
dwMciTimeFormat
,
wmw
->
dwMciTimeFormat
);
lpParms
->
dwReturn
=
MAKEMCIRESOURCE
(
wmw
->
dwMciTimeFormat
,
MCI_FORMAT_RETURN_BASE
+
wmw
->
dwMciTimeFormat
);
TRACE
(
"MCI_STATUS_TIME_FORMAT => %lu
\n
"
,
lpParms
->
dwReturn
);
ret
=
MCI_RESOURCE_RETURNED
;
break
;
...
...
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