aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/ALc.c
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/ALc.c')
-rw-r--r--Alc/ALc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index 0382881c..6201ff5f 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -1192,7 +1192,8 @@ ALCAPI ALCcontext* ALCAPIENTRY alcCreateContext(ALCdevice *device, const ALCint
if(ALCdevice_ResetPlayback(device) == ALC_FALSE)
{
- SetALCError(ALC_INVALID_VALUE);
+ SetALCError(ALC_INVALID_DEVICE);
+ aluHandleDisconnect(device);
ProcessContext(NULL);
return NULL;
}