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
1612ce86
Commit
1612ce86
authored
May 24, 2006
by
Ken Thomases
Committed by
Alexandre Julliard
Jun 01, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winecoreaudio: Don't CFAllocate buffer for port message.
parent
fb5a073e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
11 deletions
+3
-11
audio.c
dlls/winmm/winecoreaudio/audio.c
+3
-11
No files found.
dlls/winmm/winecoreaudio/audio.c
View file @
1612ce86
...
...
@@ -301,31 +301,23 @@ static DWORD WINAPI messageThread(LPVOID p)
static
DWORD
wodSendDriverCallbackMessage
(
WINE_WAVEOUT
*
wwo
,
WORD
wMsg
,
DWORD
dwParam1
,
DWORD
dwParam2
)
{
CFDataRef
data
;
UInt32
*
buffer
;
UInt32
buffer
[
4
]
;
SInt32
ret
;
CFMessagePortRef
messagePort
;
messagePort
=
CFMessagePortCreateRemote
(
kCFAllocatorDefault
,
MessageThreadPortName
);
buffer
=
CFAllocatorAllocate
(
NULL
,
sizeof
(
UInt32
)
*
4
,
0
);
if
(
!
buffer
)
return
0
;
buffer
[
0
]
=
(
UInt32
)
wwo
->
woID
;
buffer
[
1
]
=
(
UInt32
)
wMsg
;
buffer
[
2
]
=
(
UInt32
)
dwParam1
;
buffer
[
3
]
=
(
UInt32
)
dwParam2
;
data
=
CFDataCreate
(
kCFAllocatorDefault
,
(
UInt8
*
)
buffer
,
sizeof
(
UInt32
)
*
4
);
data
=
CFDataCreate
(
kCFAllocatorDefault
,
(
UInt8
*
)
buffer
,
sizeof
(
buffer
)
);
if
(
!
data
)
{
CFAllocatorDeallocate
(
NULL
,
buffer
);
return
0
;
}
ret
=
CFMessagePortSendRequest
(
messagePort
,
kWaveOutCallbackMessage
,
data
,
0
.
0
,
0
.
0
,
NULL
,
NULL
);
CFRelease
(
data
);
CFAllocatorDeallocate
(
NULL
,
buffer
);
CFRelease
(
messagePort
);
return
(
ret
==
kCFMessagePortSuccess
)
?
1
:
0
;
...
...
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