Use cached ACP
authorRémi Denis-Courmont <rem@videolan.org>
Tue, 20 Nov 2007 17:03:44 +0000 (17:03 +0000)
committerRémi Denis-Courmont <rem@videolan.org>
Tue, 20 Nov 2007 17:03:44 +0000 (17:03 +0000)
src/text/wincp.c

index fe82f4a..ec135c2 100644 (file)
@@ -215,7 +215,7 @@ const char *GetFallbackEncoding( void )
                 strcpy (buf, "ISO-8859-8");
                 break;
             default:
-                snprintf (buf, sizeof (buf), "CP%u", GetACP ());
+                snprintf (buf, sizeof (buf), "CP%u", cp);
         }
     }
     return buf;