From 58c64581407f5547a84292a10933e16c03e4956d Mon Sep 17 00:00:00 2001 From: evpobr Date: Thu, 10 Jan 2019 09:46:45 +0500 Subject: [PATCH] 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 --- src/file_io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/file_io.c b/src/file_io.c index 7924d721..855dda8a 100644 --- a/src/file_io.c +++ b/src/file_io.c @@ -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 */