summaryrefslogtreecommitdiff
path: root/src/fontcache.cpp
diff options
context:
space:
mode:
authormichi_cc <michi_cc@openttd.org>2013-04-06 18:36:41 +0000
committermichi_cc <michi_cc@openttd.org>2013-04-06 18:36:41 +0000
commitd1212e0b1a66e3ea6a049ef8e985033adb661919 (patch)
tree1682193d136eb6a9a07fbc6af9844adf20d02d8a /src/fontcache.cpp
parentaa2c1ce4b078e5b54be7c1853ccd6a36c917b1e2 (diff)
downloadopenttd-d1212e0b1a66e3ea6a049ef8e985033adb661919.tar.xz
(svn r25153) -Fix [FS#5522] (r24487): [Win32] Don't statically link to SHGetFolderPath as it may not exist.
Diffstat (limited to 'src/fontcache.cpp')
-rw-r--r--src/fontcache.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fontcache.cpp b/src/fontcache.cpp
index d5f2b3f7c..1d7f528d6 100644
--- a/src/fontcache.cpp
+++ b/src/fontcache.cpp
@@ -173,7 +173,7 @@ static FT_Error GetFontByFaceName(const char *font_name, FT_Face *face)
}
}
- if (!SUCCEEDED(SHGetFolderPath(NULL, CSIDL_FONTS, NULL, SHGFP_TYPE_CURRENT, vbuffer))) {
+ if (!SUCCEEDED(OTTDSHGetFolderPath(NULL, CSIDL_FONTS, NULL, SHGFP_TYPE_CURRENT, vbuffer))) {
DEBUG(freetype, 0, "SHGetFolderPath cannot return fonts directory");
goto folder_error;
}