aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/winmm.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2009-12-28 23:19:13 -0800
committerChris Robinson <[email protected]>2009-12-28 23:19:13 -0800
commit7ee81eac0fd1ecd719c906cfc8fc9a81fcf0ffbe (patch)
treea3b955467e7d67e7369d6f38b23910cffdbac367 /Alc/winmm.c
parentc9a08fc7b235425058d3e28ddc46ae56dc726d7d (diff)
Store ALC errors with the device when possible
Diffstat (limited to 'Alc/winmm.c')
-rw-r--r--Alc/winmm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/winmm.c b/Alc/winmm.c
index bf3c1887..6dd88191 100644
--- a/Alc/winmm.c
+++ b/Alc/winmm.c
@@ -202,7 +202,7 @@ static ALCboolean WinMMOpenCapture(ALCdevice *pDevice, const ALCchar *deviceName
pData = calloc(1, sizeof(*pData));
if(!pData)
{
- alcSetError(ALC_OUT_OF_MEMORY);
+ alcSetError(pDevice, ALC_OUT_OF_MEMORY);
return ALC_FALSE;
}
@@ -373,7 +373,7 @@ static void WinMMCaptureSamples(ALCdevice *pDevice, ALCvoid *pBuffer, ALCuint lS
frameSize;
if(ulSamples > ulCapturedSamples)
{
- alcSetError(ALC_INVALID_VALUE);
+ alcSetError(pDevice, ALC_INVALID_VALUE);
return;
}