summaryrefslogtreecommitdiffstats
path: root/gfx
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2020-07-29 14:13:33 +0000
committerMoonchild <moonchild@palemoon.org>2020-07-29 14:29:33 +0000
commit2ee2ca7dfb0913eef79708dc4100f87b9557e128 (patch)
tree9df45decf2d7d940ff19641adea50fe7122805f7 /gfx
parent0d7b7b74c6015a068c410238295e0e7304af6a29 (diff)
downloadUXP-2ee2ca7dfb0913eef79708dc4100f87b9557e128.tar
UXP-2ee2ca7dfb0913eef79708dc4100f87b9557e128.tar.gz
UXP-2ee2ca7dfb0913eef79708dc4100f87b9557e128.tar.lz
UXP-2ee2ca7dfb0913eef79708dc4100f87b9557e128.tar.xz
UXP-2ee2ca7dfb0913eef79708dc4100f87b9557e128.zip
Improve dll loading on Windows.
Diffstat (limited to 'gfx')
-rw-r--r--gfx/2d/DrawTargetD2D1.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/gfx/2d/DrawTargetD2D1.cpp b/gfx/2d/DrawTargetD2D1.cpp
index d9deb4c10..a2e854107 100644
--- a/gfx/2d/DrawTargetD2D1.cpp
+++ b/gfx/2d/DrawTargetD2D1.cpp
@@ -14,6 +14,7 @@
#include "FilterNodeD2D1.h"
#include "ExtendInputEffectD2D1.h"
#include "Tools.h"
+#include "nsWindowsHelpers.h"
using namespace std;
@@ -1177,7 +1178,7 @@ DrawTargetD2D1::GetDWriteFactory()
}
decltype(DWriteCreateFactory)* createDWriteFactory;
- HMODULE dwriteModule = LoadLibraryW(L"dwrite.dll");
+ HMODULE dwriteModule = LoadLibrarySystem32(L"dwrite.dll");
createDWriteFactory = (decltype(DWriteCreateFactory)*)
GetProcAddress(dwriteModule, "DWriteCreateFactory");