[vlc-commits] Freetype: use ANSI version of registry open functions

Jean-Baptiste Kempf git at videolan.org
Tue Jan 15 00:34:42 CET 2013


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Jan 15 00:12:20 2013 +0100| [deb6cf93bbe748ed8a9518bace226fa4936c7774] | committer: Jean-Baptiste Kempf

Freetype: use ANSI version of registry open functions

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=deb6cf93bbe748ed8a9518bace226fa4936c7774
---

 modules/text_renderer/freetype.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/text_renderer/freetype.c b/modules/text_renderer/freetype.c
index 99fa521..6389435 100644
--- a/modules/text_renderer/freetype.c
+++ b/modules/text_renderer/freetype.c
@@ -597,7 +597,7 @@ static int GetFileFontByName( const char *font_name, char **psz_filename )
     wchar_t vbuffer[MAX_PATH];
     wchar_t dbuffer[256];
 
-    if( RegOpenKeyEx(HKEY_LOCAL_MACHINE, FONT_DIR_NT, 0, KEY_READ, &hKey)
+    if( RegOpenKeyExA(HKEY_LOCAL_MACHINE, FONT_DIR_NT, 0, KEY_READ, &hKey)
             != ERROR_SUCCESS )
         return 1;
 



More information about the vlc-commits mailing list