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
26d6c1f5
Commit
26d6c1f5
authored
Sep 01, 2000
by
James Abbatiello
Committed by
Alexandre Julliard
Sep 01, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't use copies of critical sections made by memcpy()
Added missing WINAPIs
parent
ebef9a95
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
19 deletions
+20
-19
dsound_main.c
dlls/dsound/dsound_main.c
+20
-19
No files found.
dlls/dsound/dsound_main.c
View file @
26d6c1f5
...
...
@@ -2023,6 +2023,7 @@ static HRESULT WINAPI IDirectSoundImpl_DuplicateSoundBuffer(
(
*
ippdsb
)
->
dsound
=
This
;
(
*
ippdsb
)
->
parent
=
ipdsb
;
memcpy
(
&
((
*
ippdsb
)
->
wfx
),
&
(
ipdsb
->
wfx
),
sizeof
((
*
ippdsb
)
->
wfx
));
InitializeCriticalSection
(
&
(
*
ippdsb
)
->
lock
);
/* register buffer */
EnterCriticalSection
(
&
(
This
->
lock
));
{
...
...
@@ -3185,7 +3186,7 @@ DSOUND_CreateDirectSoundCapture( LPVOID* ppobj )
return
S_OK
;
}
static
HRESULT
static
HRESULT
WINAPI
IDirectSoundCaptureImpl_QueryInterface
(
LPDIRECTSOUNDCAPTURE
iface
,
REFIID
riid
,
...
...
@@ -3198,7 +3199,7 @@ IDirectSoundCaptureImpl_QueryInterface(
return
E_FAIL
;
}
static
ULONG
static
ULONG
WINAPI
IDirectSoundCaptureImpl_AddRef
(
LPDIRECTSOUNDCAPTURE
iface
)
{
ULONG
uRef
;
...
...
@@ -3214,7 +3215,7 @@ IDirectSoundCaptureImpl_AddRef( LPDIRECTSOUNDCAPTURE iface )
return
uRef
;
}
static
ULONG
static
ULONG
WINAPI
IDirectSoundCaptureImpl_Release
(
LPDIRECTSOUNDCAPTURE
iface
)
{
ULONG
uRef
;
...
...
@@ -3235,7 +3236,7 @@ IDirectSoundCaptureImpl_Release( LPDIRECTSOUNDCAPTURE iface )
return
uRef
;
}
static
HRESULT
static
HRESULT
WINAPI
IDirectSoundCaptureImpl_CreateCaptureBuffer
(
LPDIRECTSOUNDCAPTURE
iface
,
LPCDSCBUFFERDESC
lpcDSCBufferDesc
,
...
...
@@ -3256,7 +3257,7 @@ IDirectSoundCaptureImpl_CreateCaptureBuffer(
return
hr
;
}
static
HRESULT
static
HRESULT
WINAPI
IDirectSoundCaptureImpl_GetCaps
(
LPDIRECTSOUNDCAPTURE
iface
,
LPDSCCAPS
lpDSCCaps
)
...
...
@@ -3268,7 +3269,7 @@ IDirectSoundCaptureImpl_GetCaps(
return
DS_OK
;
}
static
HRESULT
static
HRESULT
WINAPI
IDirectSoundCaptureImpl_Initialize
(
LPDIRECTSOUNDCAPTURE
iface
,
LPCGUID
lpcGUID
)
...
...
@@ -3295,7 +3296,7 @@ static ICOM_VTABLE(IDirectSoundCapture) dscvt =
IDirectSoundCaptureImpl_Initialize
};
static
HRESULT
static
HRESULT
DSOUND_CreateDirectSoundCaptureBuffer
(
LPCDSCBUFFERDESC
lpcDSCBufferDesc
,
LPVOID
*
ppobj
)
{
...
...
@@ -3320,7 +3321,7 @@ DSOUND_CreateDirectSoundCaptureBuffer( LPCDSCBUFFERDESC lpcDSCBufferDesc, LPVOID
}
static
HRESULT
static
HRESULT
WINAPI
IDirectSoundCaptureBufferImpl_QueryInterface
(
LPDIRECTSOUNDCAPTUREBUFFER
iface
,
REFIID
riid
,
...
...
@@ -3333,7 +3334,7 @@ IDirectSoundCaptureBufferImpl_QueryInterface(
return
E_FAIL
;
}
static
ULONG
static
ULONG
WINAPI
IDirectSoundCaptureBufferImpl_AddRef
(
LPDIRECTSOUNDCAPTUREBUFFER
iface
)
{
ULONG
uRef
;
...
...
@@ -3349,7 +3350,7 @@ IDirectSoundCaptureBufferImpl_AddRef( LPDIRECTSOUNDCAPTUREBUFFER iface )
return
uRef
;
}
static
ULONG
static
ULONG
WINAPI
IDirectSoundCaptureBufferImpl_Release
(
LPDIRECTSOUNDCAPTUREBUFFER
iface
)
{
ULONG
uRef
;
...
...
@@ -3370,7 +3371,7 @@ IDirectSoundCaptureBufferImpl_Release( LPDIRECTSOUNDCAPTUREBUFFER iface )
return
uRef
;
}
static
HRESULT
static
HRESULT
WINAPI
IDirectSoundCaptureBufferImpl_GetCaps
(
LPDIRECTSOUNDCAPTUREBUFFER
iface
,
LPDSCBCAPS
lpDSCBCaps
)
...
...
@@ -3382,7 +3383,7 @@ IDirectSoundCaptureBufferImpl_GetCaps(
return
DS_OK
;
}
static
HRESULT
static
HRESULT
WINAPI
IDirectSoundCaptureBufferImpl_GetCurrentPosition
(
LPDIRECTSOUNDCAPTUREBUFFER
iface
,
LPDWORD
lpdwCapturePosition
,
...
...
@@ -3395,7 +3396,7 @@ IDirectSoundCaptureBufferImpl_GetCurrentPosition(
return
DS_OK
;
}
static
HRESULT
static
HRESULT
WINAPI
IDirectSoundCaptureBufferImpl_GetFormat
(
LPDIRECTSOUNDCAPTUREBUFFER
iface
,
LPWAVEFORMATEX
lpwfxFormat
,
...
...
@@ -3409,7 +3410,7 @@ IDirectSoundCaptureBufferImpl_GetFormat(
return
DS_OK
;
}
static
HRESULT
static
HRESULT
WINAPI
IDirectSoundCaptureBufferImpl_GetStatus
(
LPDIRECTSOUNDCAPTUREBUFFER
iface
,
LPDWORD
lpdwStatus
)
...
...
@@ -3421,7 +3422,7 @@ IDirectSoundCaptureBufferImpl_GetStatus(
return
DS_OK
;
}
static
HRESULT
static
HRESULT
WINAPI
IDirectSoundCaptureBufferImpl_Initialize
(
LPDIRECTSOUNDCAPTUREBUFFER
iface
,
LPDIRECTSOUNDCAPTURE
lpDSC
,
...
...
@@ -3434,7 +3435,7 @@ IDirectSoundCaptureBufferImpl_Initialize(
return
DS_OK
;
}
static
HRESULT
static
HRESULT
WINAPI
IDirectSoundCaptureBufferImpl_Lock
(
LPDIRECTSOUNDCAPTUREBUFFER
iface
,
DWORD
dwReadCusor
,
...
...
@@ -3452,7 +3453,7 @@ IDirectSoundCaptureBufferImpl_Lock(
return
DS_OK
;
}
static
HRESULT
static
HRESULT
WINAPI
IDirectSoundCaptureBufferImpl_Start
(
LPDIRECTSOUNDCAPTUREBUFFER
iface
,
DWORD
dwFlags
)
...
...
@@ -3464,7 +3465,7 @@ IDirectSoundCaptureBufferImpl_Start(
return
DS_OK
;
}
static
HRESULT
static
HRESULT
WINAPI
IDirectSoundCaptureBufferImpl_Stop
(
LPDIRECTSOUNDCAPTUREBUFFER
iface
)
{
ICOM_THIS
(
IDirectSoundCaptureBufferImpl
,
iface
);
...
...
@@ -3474,7 +3475,7 @@ IDirectSoundCaptureBufferImpl_Stop( LPDIRECTSOUNDCAPTUREBUFFER iface )
return
DS_OK
;
}
static
HRESULT
static
HRESULT
WINAPI
IDirectSoundCaptureBufferImpl_Unlock
(
LPDIRECTSOUNDCAPTUREBUFFER
iface
,
LPVOID
lpvAudioPtr1
,
...
...
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