diff options
author | Moonchild <moonchild@palemoon.org> | 2020-07-29 14:13:33 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2020-07-29 14:13:33 +0000 |
commit | 0a8c53ff3d2513199f73b5f995ce9e812548f3a7 (patch) | |
tree | 0bcfa39ff4dc6dc7a31cc7a50e4a6123f5bd63fe /gfx | |
parent | 9d155b45c7b95e99777278a22d91817f034ae5d9 (diff) | |
download | uxp-0a8c53ff3d2513199f73b5f995ce9e812548f3a7.tar.gz |
Improve dll loading on Windows.
Diffstat (limited to 'gfx')
-rw-r--r-- | gfx/2d/DrawTargetD2D1.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gfx/2d/DrawTargetD2D1.cpp b/gfx/2d/DrawTargetD2D1.cpp index d9deb4c104..a2e8541078 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"); |