Properly return on error
This commit is contained in:
parent
b4435cd053
commit
187477db03
@ -3212,8 +3212,11 @@ START_API_FUNC
|
||||
{
|
||||
DeviceRef dev{VerifyDevice(device)};
|
||||
if(size <= 0 || values == nullptr)
|
||||
{
|
||||
alcSetError(dev.get(), ALC_INVALID_VALUE);
|
||||
else if(!dev || dev->Type == Capture)
|
||||
return;
|
||||
}
|
||||
if(!dev || dev->Type == Capture)
|
||||
{
|
||||
auto ivals = al::vector<int>(static_cast<ALuint>(size));
|
||||
size_t got{GetIntegerv(dev.get(), pname, ivals)};
|
||||
|
Loading…
x
Reference in New Issue
Block a user