Commit 536a10aca87e60e8b717e2a70c1d0fb64694e1be

Alexei Podtelezhnikov 2021-08-17T22:24:46

* builds/windows/ftsystem.c (FT_Stream_Open): Cast to remove warning.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/builds/windows/ftsystem.c b/builds/windows/ftsystem.c
index 0a8d2b6..ac1d2e7 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:" ));