mirror of
https://gitee.com/openharmony/third_party_libsnd
synced 2025-02-17 01:20:02 +00:00
Fix fopen call to use mode "wb" so it works on Win32.
This commit is contained in:
parent
1c3fa60db9
commit
227a966990
@ -103,7 +103,7 @@ static void
|
||||
dump_data_to_file (const char *filename, void *data, unsigned int datalen)
|
||||
{ FILE *file ;
|
||||
|
||||
if ((file = fopen (filename, "w")) == NULL)
|
||||
if ((file = fopen (filename, "wb")) == NULL)
|
||||
{ printf ("\n\nLine %d : could not open file : %s\n\n", __LINE__, filename) ;
|
||||
exit (1) ;
|
||||
} ;
|
||||
|
Loading…
x
Reference in New Issue
Block a user