wavwrite.cpp: call to nothrow allocation.

This commit is contained in:
dankan1890 2016-01-29 00:47:01 +01:00
parent 361d32d37f
commit 1e8d53c167

View File

@ -18,7 +18,7 @@ wav_file *wav_open(const char *filename, int sample_rate, int channels)
UINT16 align, temp16; UINT16 align, temp16;
/* allocate memory for the wav struct */ /* allocate memory for the wav struct */
wav = global_alloc(wav_file); wav = global_alloc_nothrow(wav_file);
if (!wav) if (!wav)
return nullptr; return nullptr;