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:
evpobr 2019-01-10 09:46:45 +05:00 committed by Erik de Castro Lopo
parent c11deaa04e
commit 58c6458140

View File

@ -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 */