dsound.c - Refactor grab_region

This commit is contained in:
twinaphex 2015-09-06 15:23:30 +02:00
parent 73d599dc83
commit 12376cd611

View File

@ -119,16 +119,11 @@ static INLINE bool grab_region(dsound_t *ds, uint32_t write_ptr,
break;
default:
err = NULL;
return true;
}
if (err)
{
RARCH_WARN("[DirectSound error]: %s\n", err);
return false;
}
return true;
RARCH_WARN("[DirectSound error]: %s\n", err);
return false;
}
static INLINE void release_region(dsound_t *ds, const struct audio_lock *region)