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
5b8d5131
Commit
5b8d5131
authored
Mar 07, 2004
by
Raphael Junqueira
Committed by
Alexandre Julliard
Mar 07, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix one ugly bug (horrible cast) into dmusic code to get Unreal2
crashing later (when trying to launch loaded sound) :)
parent
490fbd84
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
performance.c
dlls/dmime/performance.c
+5
-3
No files found.
dlls/dmime/performance.c
View file @
5b8d5131
...
...
@@ -486,6 +486,7 @@ HRESULT WINAPI IDirectMusicPerformance8ImplCreateAudioPath (LPDIRECTMUSICPERFORM
*/
HRESULT
WINAPI
IDirectMusicPerformance8ImplCreateStandardAudioPath
(
LPDIRECTMUSICPERFORMANCE8
iface
,
DWORD
dwType
,
DWORD
dwPChannelCount
,
BOOL
fActivate
,
IDirectMusicAudioPath
**
ppNewPath
)
{
IDirectMusicAudioPathImpl
*
default_path
;
IDirectMusicAudioPath
*
pPath
;
DSBUFFERDESC
desc
;
WAVEFORMATEX
format
;
LPDIRECTSOUNDBUFFER8
buffer
;
...
...
@@ -499,9 +500,10 @@ HRESULT WINAPI IDirectMusicPerformance8ImplCreateStandardAudioPath (LPDIRECTMUSI
return
E_POINTER
;
}
DMUSIC_CreateDirectMusicAudioPathImpl
(
&
IID_IDirectMusicAudioPath
,
(
LPVOID
*
)
&
default_path
,
NULL
);
DMUSIC_CreateDirectMusicAudioPathImpl
(
&
IID_IDirectMusicAudioPath
,
(
LPVOID
*
)
&
pPath
,
NULL
);
default_path
=
(
IDirectMusicAudioPathImpl
*
)((
char
*
)(
pPath
)
-
offsetof
(
IDirectMusicAudioPathImpl
,
AudioPathVtbl
));
default_path
->
pPerf
=
(
IDirectMusicPerformance8
*
)
This
;
/* Secondary buffer description */
format
.
wFormatTag
=
WAVE_FORMAT_PCM
;
format
.
nChannels
=
1
;
...
...
@@ -565,7 +567,7 @@ HRESULT WINAPI IDirectMusicPerformance8ImplCreateStandardAudioPath (LPDIRECTMUSI
}
default_path
->
pPrimary
=
(
IDirectSoundBuffer
*
)
buffer
;
*
ppNewPath
=
(
LPDIRECTMUSICAUDIOPATH
)
default_p
ath
;
*
ppNewPath
=
(
LPDIRECTMUSICAUDIOPATH
)
pP
ath
;
TRACE
(
" returning IDirectMusicPerformance interface at %p.
\n
"
,
*
ppNewPath
);
...
...
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