diff options
author | Chris Robinson <[email protected]> | 2010-01-09 03:25:13 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2010-01-09 03:25:13 -0800 |
commit | d61f90a9c2e1fe6000759f2a157d906d9c38ede6 (patch) | |
tree | 52ddf73568731a870aa9560282f1239227d7606b | |
parent | 3d11fb219eda2b81253824ce5fb233ad05edf7da (diff) |
Make sure the device handle is valid when getting the device error
-rw-r--r-- | Alc/ALc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -766,7 +766,7 @@ ALCAPI ALCenum ALCAPIENTRY alcGetError(ALCdevice *device) { ALCenum errorCode = ALC_NO_ERROR; - if(device) + if(IsDevice(device)) { errorCode = device->LastError; device->LastError = ALC_NO_ERROR; |