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
40dfd72b
Commit
40dfd72b
authored
May 18, 2011
by
Jörg Höhle
Committed by
Alexandre Julliard
May 24, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winmm: Process MCI_DGV_INFO which is larger than MCI_INFO.
parent
0e566c5b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
mci.c
dlls/winmm/mci.c
+5
-3
No files found.
dlls/winmm/mci.c
View file @
40dfd72b
...
@@ -345,8 +345,8 @@ static int MCI_MapMsgAtoW(UINT msg, DWORD_PTR dwParam1, DWORD_PTR *dwParam2)
...
@@ -345,8 +345,8 @@ static int MCI_MapMsgAtoW(UINT msg, DWORD_PTR dwParam1, DWORD_PTR *dwParam2)
return
0
;
return
0
;
case
MCI_INFO
:
case
MCI_INFO
:
{
{
MCI_
INFO_PARMSA
*
mci_infoA
=
(
MCI
_INFO_PARMSA
*
)
*
dwParam2
;
MCI_
DGV_INFO_PARMSA
*
mci_infoA
=
(
MCI_DGV
_INFO_PARMSA
*
)
*
dwParam2
;
MCI_INFO_PARMSW
*
mci_infoW
;
MCI_
DGV_
INFO_PARMSW
*
mci_infoW
;
DWORD_PTR
*
ptr
;
DWORD_PTR
*
ptr
;
ptr
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
mci_infoW
)
+
sizeof
(
DWORD_PTR
));
ptr
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
*
mci_infoW
)
+
sizeof
(
DWORD_PTR
));
...
@@ -354,7 +354,7 @@ static int MCI_MapMsgAtoW(UINT msg, DWORD_PTR dwParam1, DWORD_PTR *dwParam2)
...
@@ -354,7 +354,7 @@ static int MCI_MapMsgAtoW(UINT msg, DWORD_PTR dwParam1, DWORD_PTR *dwParam2)
*
ptr
++
=
*
dwParam2
;
/* save the previous pointer */
*
ptr
++
=
*
dwParam2
;
/* save the previous pointer */
*
dwParam2
=
(
DWORD_PTR
)
ptr
;
*
dwParam2
=
(
DWORD_PTR
)
ptr
;
mci_infoW
=
(
MCI_INFO_PARMSW
*
)
ptr
;
mci_infoW
=
(
MCI_
DGV_
INFO_PARMSW
*
)
ptr
;
if
(
dwParam1
&
MCI_NOTIFY
)
if
(
dwParam1
&
MCI_NOTIFY
)
mci_infoW
->
dwCallback
=
mci_infoA
->
dwCallback
;
mci_infoW
->
dwCallback
=
mci_infoA
->
dwCallback
;
...
@@ -362,6 +362,8 @@ static int MCI_MapMsgAtoW(UINT msg, DWORD_PTR dwParam1, DWORD_PTR *dwParam2)
...
@@ -362,6 +362,8 @@ static int MCI_MapMsgAtoW(UINT msg, DWORD_PTR dwParam1, DWORD_PTR *dwParam2)
/* Size is measured in numbers of characters. */
/* Size is measured in numbers of characters. */
mci_infoW
->
dwRetSize
=
mci_infoA
->
dwRetSize
;
mci_infoW
->
dwRetSize
=
mci_infoA
->
dwRetSize
;
mci_infoW
->
lpstrReturn
=
HeapAlloc
(
GetProcessHeap
(),
0
,
mci_infoW
->
dwRetSize
*
sizeof
(
WCHAR
));
mci_infoW
->
lpstrReturn
=
HeapAlloc
(
GetProcessHeap
(),
0
,
mci_infoW
->
dwRetSize
*
sizeof
(
WCHAR
));
if
(
dwParam1
&
MCI_DGV_INFO_ITEM
)
mci_infoW
->
dwItem
=
mci_infoA
->
dwItem
;
return
1
;
return
1
;
}
}
case
MCI_SAVE
:
case
MCI_SAVE
:
...
...
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