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
dbd058a8
Commit
dbd058a8
authored
May 25, 2011
by
Jörg Höhle
Committed by
Alexandre Julliard
May 26, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mmsystem: MCI_UnMapMsg16To32W need not return a value.
parent
bc9b9d53
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
56 deletions
+10
-56
mci16.c
dlls/mmsystem.dll16/mci16.c
+10
-56
No files found.
dlls/mmsystem.dll16/mci16.c
View file @
dbd058a8
...
@@ -385,38 +385,9 @@ static MMSYSTEM_MapType MCI_MapMsg16To32W(WORD wMsg, DWORD dwFlags, DWORD_PTR* l
...
@@ -385,38 +385,9 @@ static MMSYSTEM_MapType MCI_MapMsg16To32W(WORD wMsg, DWORD dwFlags, DWORD_PTR* l
/**************************************************************************
/**************************************************************************
* MCI_UnMapMsg16To32W [internal]
* MCI_UnMapMsg16To32W [internal]
*/
*/
static
MMSYSTEM_MapType
MCI_UnMapMsg16To32W
(
WORD
wMsg
,
DWORD
dwFlags
,
DWORD_PTR
lParam
,
DWORD
result
)
static
void
MCI_UnMapMsg16To32W
(
WORD
wMsg
,
DWORD
dwFlags
,
DWORD_PTR
lParam
,
DWORD
result
)
{
{
switch
(
wMsg
)
{
switch
(
wMsg
)
{
/* case MCI_CAPTURE */
case
MCI_CLOSE
:
case
MCI_CLOSE_DRIVER
:
case
MCI_CONFIGURE
:
case
MCI_COPY
:
case
MCI_CUE
:
case
MCI_CUT
:
case
MCI_DELETE
:
case
MCI_GETDEVCAPS
:
/* case MCI_INDEX: */
/* case MCI_MARK: */
/* case MCI_MONITOR: */
case
MCI_PASTE
:
case
MCI_PAUSE
:
case
MCI_PLAY
:
case
MCI_REALIZE
:
case
MCI_RECORD
:
case
MCI_RESUME
:
case
MCI_SEEK
:
case
MCI_SET
:
/* case MCI_SETTIMECODE:*/
/* case MCI_SIGNAL:*/
case
MCI_SPIN
:
case
MCI_STEP
:
case
MCI_STOP
:
/* case MCI_UNDO: */
case
MCI_UPDATE
:
return
MMSYSTEM_MAP_OK
;
case
MCI_WHERE
:
case
MCI_WHERE
:
case
MCI_FREEZE
:
case
MCI_FREEZE
:
case
MCI_UNFREEZE
:
case
MCI_UNFREEZE
:
...
@@ -431,7 +402,7 @@ static MMSYSTEM_MapType MCI_UnMapMsg16To32W(WORD wMsg, DWORD dwFlags, DWORD_PTR
...
@@ -431,7 +402,7 @@ static MMSYSTEM_MapType MCI_UnMapMsg16To32W(WORD wMsg, DWORD dwFlags, DWORD_PTR
mdrp16
->
rc
.
bottom
=
mdrp32
->
rc
.
bottom
;
mdrp16
->
rc
.
bottom
=
mdrp32
->
rc
.
bottom
;
HeapFree
(
GetProcessHeap
(),
0
,
base
);
HeapFree
(
GetProcessHeap
(),
0
,
base
);
}
}
return
MMSYSTEM_MAP_OK
;
break
;
case
MCI_STATUS
:
case
MCI_STATUS
:
if
(
lParam
)
{
if
(
lParam
)
{
LPMCI_DGV_STATUS_PARMSW
mdsp32w
=
(
LPMCI_DGV_STATUS_PARMSW
)
lParam
;
LPMCI_DGV_STATUS_PARMSW
mdsp32w
=
(
LPMCI_DGV_STATUS_PARMSW
)
lParam
;
...
@@ -441,25 +412,24 @@ static MMSYSTEM_MapType MCI_UnMapMsg16To32W(WORD wMsg, DWORD dwFlags, DWORD_PTR
...
@@ -441,25 +412,24 @@ static MMSYSTEM_MapType MCI_UnMapMsg16To32W(WORD wMsg, DWORD dwFlags, DWORD_PTR
HeapFree
(
GetProcessHeap
(),
0
,
(
LPVOID
)
mdsp32w
->
lpstrDrive
);
HeapFree
(
GetProcessHeap
(),
0
,
(
LPVOID
)
mdsp32w
->
lpstrDrive
);
HeapFree
(
GetProcessHeap
(),
0
,
base
);
HeapFree
(
GetProcessHeap
(),
0
,
base
);
}
}
return
MMSYSTEM_MAP_OK
;
break
;
case
MCI_WINDOW
:
case
MCI_WINDOW
:
if
(
lParam
)
{
if
(
lParam
)
{
LPMCI_OVLY_WINDOW_PARMSW
mowp32w
=
(
LPMCI_OVLY_WINDOW_PARMSW
)
lParam
;
LPMCI_OVLY_WINDOW_PARMSW
mowp32w
=
(
LPMCI_OVLY_WINDOW_PARMSW
)
lParam
;
HeapFree
(
GetProcessHeap
(),
0
,
(
LPVOID
)
mowp32w
->
lpstrText
);
HeapFree
(
GetProcessHeap
(),
0
,
(
LPVOID
)
mowp32w
->
lpstrText
);
HeapFree
(
GetProcessHeap
(),
0
,
mowp32w
);
HeapFree
(
GetProcessHeap
(),
0
,
mowp32w
);
}
}
return
MMSYSTEM_MAP_OK
;
break
;
case
MCI_BREAK
:
case
MCI_BREAK
:
HeapFree
(
GetProcessHeap
(),
0
,
(
LPVOID
)
lParam
);
HeapFree
(
GetProcessHeap
(),
0
,
(
LPVOID
)
lParam
);
return
MMSYSTEM_MAP_OK
;
break
;
case
MCI_ESCAPE
:
case
MCI_ESCAPE
:
if
(
lParam
)
{
if
(
lParam
)
{
LPMCI_VD_ESCAPE_PARMSW
mvep32W
=
(
LPMCI_VD_ESCAPE_PARMSW
)
lParam
;
LPMCI_VD_ESCAPE_PARMSW
mvep32W
=
(
LPMCI_VD_ESCAPE_PARMSW
)
lParam
;
HeapFree
(
GetProcessHeap
(),
0
,
(
LPVOID
)
mvep32W
->
lpstrCommand
);
HeapFree
(
GetProcessHeap
(),
0
,
(
LPVOID
)
mvep32W
->
lpstrCommand
);
HeapFree
(
GetProcessHeap
(),
0
,
(
LPVOID
)
lParam
);
HeapFree
(
GetProcessHeap
(),
0
,
(
LPVOID
)
lParam
);
}
}
return
MMSYSTEM_MAP_OK
;
break
;
case
MCI_INFO
:
case
MCI_INFO
:
if
(
lParam
)
{
if
(
lParam
)
{
LPMCI_INFO_PARMSW
mip32w
=
(
LPMCI_INFO_PARMSW
)
lParam
;
LPMCI_INFO_PARMSW
mip32w
=
(
LPMCI_INFO_PARMSW
)
lParam
;
...
@@ -475,7 +445,7 @@ static MMSYSTEM_MapType MCI_UnMapMsg16To32W(WORD wMsg, DWORD dwFlags, DWORD_PTR
...
@@ -475,7 +445,7 @@ static MMSYSTEM_MapType MCI_UnMapMsg16To32W(WORD wMsg, DWORD dwFlags, DWORD_PTR
HeapFree
(
GetProcessHeap
(),
0
,
mip32w
->
lpstrReturn
);
HeapFree
(
GetProcessHeap
(),
0
,
mip32w
->
lpstrReturn
);
HeapFree
(
GetProcessHeap
(),
0
,
base
);
HeapFree
(
GetProcessHeap
(),
0
,
base
);
}
}
return
MMSYSTEM_MAP_OK
;
break
;
case
MCI_SYSINFO
:
case
MCI_SYSINFO
:
if
(
lParam
)
{
if
(
lParam
)
{
MCI_SYSINFO_PARMSW
*
msip32w
=
(
MCI_SYSINFO_PARMSW
*
)
lParam
;
MCI_SYSINFO_PARMSW
*
msip32w
=
(
MCI_SYSINFO_PARMSW
*
)
lParam
;
...
@@ -497,14 +467,14 @@ static MMSYSTEM_MapType MCI_UnMapMsg16To32W(WORD wMsg, DWORD dwFlags, DWORD_PTR
...
@@ -497,14 +467,14 @@ static MMSYSTEM_MapType MCI_UnMapMsg16To32W(WORD wMsg, DWORD dwFlags, DWORD_PTR
HeapFree
(
GetProcessHeap
(),
0
,
msip32w
->
lpstrReturn
);
HeapFree
(
GetProcessHeap
(),
0
,
msip32w
->
lpstrReturn
);
HeapFree
(
GetProcessHeap
(),
0
,
base
);
HeapFree
(
GetProcessHeap
(),
0
,
base
);
}
}
return
MMSYSTEM_MAP_OK
;
break
;
case
MCI_SOUND
:
case
MCI_SOUND
:
if
(
lParam
)
{
if
(
lParam
)
{
LPMCI_SOUND_PARMSW
msp32W
=
(
LPMCI_SOUND_PARMSW
)
lParam
;
LPMCI_SOUND_PARMSW
msp32W
=
(
LPMCI_SOUND_PARMSW
)
lParam
;
HeapFree
(
GetProcessHeap
(),
0
,
(
LPVOID
)
msp32W
->
lpstrSoundName
);
HeapFree
(
GetProcessHeap
(),
0
,
(
LPVOID
)
msp32W
->
lpstrSoundName
);
HeapFree
(
GetProcessHeap
(),
0
,
(
LPVOID
)
lParam
);
HeapFree
(
GetProcessHeap
(),
0
,
(
LPVOID
)
lParam
);
}
}
return
MMSYSTEM_MAP_OK
;
break
;
case
MCI_OPEN
:
case
MCI_OPEN
:
case
MCI_OPEN_DRIVER
:
case
MCI_OPEN_DRIVER
:
if
(
lParam
)
{
if
(
lParam
)
{
...
@@ -521,26 +491,10 @@ static MMSYSTEM_MapType MCI_UnMapMsg16To32W(WORD wMsg, DWORD dwFlags, DWORD_PTR
...
@@ -521,26 +491,10 @@ static MMSYSTEM_MapType MCI_UnMapMsg16To32W(WORD wMsg, DWORD dwFlags, DWORD_PTR
HeapFree
(
GetProcessHeap
(),
0
,
(
LPWSTR
)
mop32w
->
lpstrAlias
);
HeapFree
(
GetProcessHeap
(),
0
,
(
LPWSTR
)
mop32w
->
lpstrAlias
);
HeapFree
(
GetProcessHeap
(),
0
,
base
);
HeapFree
(
GetProcessHeap
(),
0
,
base
);
}
}
return
MMSYSTEM_MAP_OK
;
break
;
case
DRV_LOAD
:
case
DRV_ENABLE
:
case
DRV_OPEN
:
case
DRV_CLOSE
:
case
DRV_DISABLE
:
case
DRV_FREE
:
case
DRV_CONFIGURE
:
case
DRV_QUERYCONFIGURE
:
case
DRV_INSTALL
:
case
DRV_REMOVE
:
case
DRV_EXITSESSION
:
case
DRV_EXITAPPLICATION
:
case
DRV_POWER
:
FIXME
(
"This is a hack
\n
"
);
return
MMSYSTEM_MAP_OK
;
default:
default:
FIXME
(
"Map/Unmap internal error on msg=%s
\n
"
,
MCI_MessageToString
(
wMsg
));
FIXME
(
"Map/Unmap internal error on msg=%s
\n
"
,
MCI_MessageToString
(
wMsg
));
}
}
return
MMSYSTEM_MAP_MSGERROR
;
}
}
/* ###################################################
/* ###################################################
...
...
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