From b20ceda590f1717efb3ac8cd2cc3ff124905c4a8 Mon Sep 17 00:00:00 2001 From: Christoph von Wittich Date: Sat, 20 Sep 2008 13:36:26 +0000 Subject: [PATCH] fix some non standard conformant code svn path=/trunk/; revision=36346 --- rosapps/applications/fontview/fontview.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rosapps/applications/fontview/fontview.c b/rosapps/applications/fontview/fontview.c index bb791b52536..1f0f0b624ef 100644 --- a/rosapps/applications/fontview/fontview.c +++ b/rosapps/applications/fontview/fontview.c @@ -93,6 +93,8 @@ WinMain (HINSTANCE hThisInstance, HWND hMainWnd; MSG msg; WNDCLASSEXW wincl; + HINSTANCE hDLL; + PGFRI GetFontResourceInfoW; g_hInstance = hThisInstance; @@ -112,8 +114,8 @@ WinMain (HINSTANCE hThisInstance, } /* Load the GetFontResourceInfo function from gdi32.dll */ - HINSTANCE hDLL = LoadLibraryW(L"GDI32.DLL"); - PGFRI GetFontResourceInfoW = (PGFRI)GetProcAddress(hDLL, "GetFontResourceInfoW"); + hDLL = LoadLibraryW(L"GDI32.DLL"); + GetFontResourceInfoW = (PGFRI)GetProcAddress(hDLL, "GetFontResourceInfoW"); /* Get the font name */ dwSize = sizeof(g_ExtLogFontW.elfFullName);