mirror of
https://github.com/holub/mame
synced 2025-06-29 23:48:56 +03:00
wavwrite.cpp: call to nothrow allocation.
This commit is contained in:
parent
361d32d37f
commit
1e8d53c167
@ -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;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user