summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/fontcache.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fontcache.cpp b/src/fontcache.cpp
index 1669ec6dc..96a69db11 100644
--- a/src/fontcache.cpp
+++ b/src/fontcache.cpp
@@ -169,6 +169,7 @@ static const char *GetEnglishFontName(const ENUMLOGFONTEX *logfont)
{
static char font_name[MAX_PATH];
const char *ret_font_name = NULL;
+ uint pos = 0;
HFONT font = CreateFontIndirect(&logfont->elfLogFont);
if (font == NULL) goto err1;
@@ -182,7 +183,6 @@ static const char *GetEnglishFontName(const ENUMLOGFONTEX *logfont)
dw = GetFontData(dc, 'eman', 0, buf, dw);
if (dw == GDI_ERROR) goto err3;
- uint pos = 0;
uint16 format = buf[pos++] << 8;
format += buf[pos++];
assert(format == 0);