aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2013-04-01 15:22:53 +1100
committernyamatongwe <devnull@localhost>2013-04-01 15:22:53 +1100
commit85cf9f34c48dc4fed341031b9df50be41d3ad518 (patch)
tree339d72a0a859676c696bb917849669e0ded7f0c4
parent4a66921d736e709d59beb776e7f7bdee74e68cc3 (diff)
downloadscintilla-mirror-85cf9f34c48dc4fed341031b9df50be41d3ad518.tar.gz
Variables not reused so should not be static.
-rw-r--r--win32/PlatWin.cxx6
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) {