mirror of
https://gitee.com/openharmony/third_party_libsnd
synced 2025-02-17 09:29:53 +00:00
src/file_io.c: Use CreateFileA for ANSI path
With `_UNICODE`defined `CreateFile` is expanded to unicode `CreateFileW` instead of ANSI `CreateFileA`. Thanks @aholzinger Closes: #442
This commit is contained in:
parent
c11deaa04e
commit
58c6458140
@ -788,7 +788,7 @@ psf_open_handle (PSF_FILE * pfile)
|
||||
NULL /* handle to file with attributes to copy */
|
||||
) ;
|
||||
else
|
||||
handle = CreateFile (
|
||||
handle = CreateFileA (
|
||||
pfile->path.c, /* pointer to name of the file */
|
||||
dwDesiredAccess, /* access (read-write) mode */
|
||||
dwShareMode, /* share mode */
|
||||
|
Loading…
x
Reference in New Issue
Block a user