Skip to content

Commit

Permalink
patch windows SndBuf wide-char issue
Browse files Browse the repository at this point in the history
  • Loading branch information
gewang committed Oct 11, 2024
1 parent c55ecca commit c18b3cd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions VERSIONS
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
ChucK VERSIONS log
------------------

1.5.3.2
=======
- (fixed, windows) SndBuf issue when compiled with UNICODE (FYI SndBuf is still ANSI,
but this averts an error due to char width mismatch)


1.5.3.1 (October 2024)
*** ChuGL maintanance patch ***
- (fixed) crash caused by calling UI functions before calling GG.nextFrame();
Expand Down
2 changes: 1 addition & 1 deletion src/core/util_sndfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -8008,7 +8008,7 @@ psf_fopen (SF_PRIVATE *psf, const char *pathname, int open_mode)
return psf->error ;
} ;

handle = CreateFile (
handle = CreateFileA ( /* (ge & eito) explicitly use ANSI version of CreateFile | 1.5.3.2 */
pathname, /* pointer to name of the file */
dwDesiredAccess, /* access (read-write) mode */
dwShareMode, /* share mode */
Expand Down

0 comments on commit c18b3cd

Please sign in to comment.