fix some non standard conformant code

svn path=/trunk/; revision=36346
This commit is contained in:
Christoph von Wittich 2008-09-20 13:36:26 +00:00
parent c2060ef1ff
commit b20ceda590

View file

@ -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);