ref: 536a10aca87e60e8b717e2a70c1d0fb64694e1be
parent: 5116f129633d05c174504fb3b2586b7f92cee17f
author: Alexei Podtelezhnikov <[email protected]>
date: Tue Aug 17 18:24:46 EDT 2021
* builds/windows/ftsystem.c (FT_Stream_Open): Cast to remove warning.
--- 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:" ));