Author: cwittich
Date: Sat Sep 20 08:36:26 2008
New Revision: 36346
URL:
http://svn.reactos.org/svn/reactos?rev=36346&view=rev
Log:
fix some non standard conformant code
Modified:
trunk/rosapps/applications/fontview/fontview.c
Modified: trunk/rosapps/applications/fontview/fontview.c
URL:
http://svn.reactos.org/svn/reactos/trunk/rosapps/applications/fontview/font…
==============================================================================
--- trunk/rosapps/applications/fontview/fontview.c [iso-8859-1] (original)
+++ trunk/rosapps/applications/fontview/fontview.c [iso-8859-1] Sat Sep 20 08:36:26 2008
@@ -93,6 +93,8 @@
HWND hMainWnd;
MSG msg;
WNDCLASSEXW wincl;
+ HINSTANCE hDLL;
+ PGFRI GetFontResourceInfoW;
g_hInstance = hThisInstance;
@@ -112,8 +114,8 @@
}
/* 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);