diff options
| -rw-r--r-- | win32/PlatWin.cxx | 6 | 
1 files changed, 2 insertions, 4 deletions
diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index f7d68b921..aed9a8e8c 100644 --- a/win32/PlatWin.cxx +++ b/win32/PlatWin.cxx @@ -125,15 +125,13 @@ ID2D1Factory *pD2DFactory = 0;  bool LoadD2D() {  	static bool triedLoadingD2D = false; -	static HMODULE hDLLD2D = 0; -	static HMODULE hDLLDWrite = 0;  	if (!triedLoadingD2D) {  		typedef HRESULT (WINAPI *D2D1CFSig)(D2D1_FACTORY_TYPE factoryType, REFIID riid,  			CONST D2D1_FACTORY_OPTIONS *pFactoryOptions, IUnknown **factory);  		typedef HRESULT (WINAPI *DWriteCFSig)(DWRITE_FACTORY_TYPE factoryType, REFIID iid,  			IUnknown **factory); -		hDLLD2D = ::LoadLibraryEx(TEXT("D2D1.DLL"), 0, 0x00000800 /*LOAD_LIBRARY_SEARCH_SYSTEM32*/); +		HMODULE hDLLD2D = ::LoadLibraryEx(TEXT("D2D1.DLL"), 0, 0x00000800 /*LOAD_LIBRARY_SEARCH_SYSTEM32*/);  		if (hDLLD2D) {  			D2D1CFSig fnD2DCF = (D2D1CFSig)::GetProcAddress(hDLLD2D, "D2D1CreateFactory");  			if (fnD2DCF) { @@ -144,7 +142,7 @@ bool LoadD2D() {  					reinterpret_cast<IUnknown**>(&pD2DFactory));  			}  		} -		hDLLDWrite = ::LoadLibraryEx(TEXT("DWRITE.DLL"), 0, 0x00000800 /*LOAD_LIBRARY_SEARCH_SYSTEM32*/); +		HMODULE hDLLDWrite = ::LoadLibraryEx(TEXT("DWRITE.DLL"), 0, 0x00000800 /*LOAD_LIBRARY_SEARCH_SYSTEM32*/);  		if (hDLLDWrite) {  			DWriteCFSig fnDWCF = (DWriteCFSig)::GetProcAddress(hDLLDWrite, "DWriteCreateFactory");  			if (fnDWCF) {  | 
