summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexei Podtelezhnikov <apodtele@gmail.com>2021-08-17 22:24:46 -0400
committerAlexei Podtelezhnikov <apodtele@gmail.com>2021-08-17 22:24:46 -0400
commit536a10aca87e60e8b717e2a70c1d0fb64694e1be (patch)
treedbd2d6ddfe069da2fc24cbd41b9fb3483b812026
parent5116f129633d05c174504fb3b2586b7f92cee17f (diff)
downloadfreetype2-536a10aca87e60e8b717e2a70c1d0fb64694e1be.tar.gz
* builds/windows/ftsystem.c (FT_Stream_Open): Cast to remove warning.
-rw-r--r--builds/windows/ftsystem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/builds/windows/ftsystem.c b/builds/windows/ftsystem.c
index 0a8d2b6b4..ac1d2e78c 100644
--- a/builds/windows/ftsystem.c
+++ b/builds/windows/ftsystem.c
@@ -217,8 +217,8 @@
return FT_THROW( Invalid_Stream_Handle );
/* open the file */
- file = CreateFile( filepathname, GENERIC_READ, FILE_SHARE_READ, NULL,
- OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0 );
+ file = CreateFile( (LPCTSTR)filepathname, GENERIC_READ, FILE_SHARE_READ,
+ NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0 );
if ( file == INVALID_HANDLE_VALUE )
{
FT_ERROR(( "FT_Stream_Open:" ));