diff options
author | Moonchild <moonchild@palemoon.org> | 2020-09-17 15:24:50 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2020-09-17 15:25:44 +0000 |
commit | 8151bb2b05f71c7fac9aefc94b97d7b703c8d803 (patch) | |
tree | 5b36af1946702a7a439fd1fd113913b9cee4d395 /dom | |
parent | b6b868b1bda0d82b85647f3e9ff2ab1f788eeb46 (diff) | |
download | UXP-8151bb2b05f71c7fac9aefc94b97d7b703c8d803.tar UXP-8151bb2b05f71c7fac9aefc94b97d7b703c8d803.tar.gz UXP-8151bb2b05f71c7fac9aefc94b97d7b703c8d803.tar.lz UXP-8151bb2b05f71c7fac9aefc94b97d7b703c8d803.tar.xz UXP-8151bb2b05f71c7fac9aefc94b97d7b703c8d803.zip |
Issue #1653 - Part 1: Remove WinUtils::SHGetKnownFolderPath
Instead of doing the whole dll-load, replace function dance, we can just use the
shlobj.h version of Windows.
Diffstat (limited to 'dom')
-rw-r--r-- | dom/plugins/ipc/PluginModuleChild.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dom/plugins/ipc/PluginModuleChild.cpp b/dom/plugins/ipc/PluginModuleChild.cpp index f943dfc42..98c9cd494 100644 --- a/dom/plugins/ipc/PluginModuleChild.cpp +++ b/dom/plugins/ipc/PluginModuleChild.cpp @@ -40,8 +40,8 @@ #ifdef XP_WIN #include "nsWindowsDllInterceptor.h" #include "mozilla/widget/AudioSession.h" -#include "WinUtils.h" #include <knownfolders.h> +#include <shlobj.h> #endif #ifdef MOZ_WIDGET_COCOA @@ -1918,8 +1918,8 @@ GetLocalLowTempPath(size_t aLen, LPWSTR aPath) { NS_NAMED_LITERAL_STRING(tempname, "\\Temp"); LPWSTR path; - if (SUCCEEDED(WinUtils::SHGetKnownFolderPath(FOLDERID_LocalAppDataLow, 0, - nullptr, &path))) { + if (SUCCEEDED(SHGetKnownFolderPath(FOLDERID_LocalAppDataLow, 0, + nullptr, &path))) { if (wcslen(path) + tempname.Length() < aLen) { wcscpy(aPath, path); wcscat(aPath, tempname.get()); |