diff options
author | Moonchild <moonchild@palemoon.org> | 2020-09-17 15:24:50 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2020-09-21 11:04:52 +0000 |
commit | 892a2d9655650616c361750a4d1a49f7d7914ad2 (patch) | |
tree | 7cedb1b8e368543f56d755781f4ed33d5c2e6adf /widget/windows/WinUtils.h | |
parent | 075fa012868017c9cb49f1b92960bf02f4bf27ca (diff) | |
download | UXP-892a2d9655650616c361750a4d1a49f7d7914ad2.tar UXP-892a2d9655650616c361750a4d1a49f7d7914ad2.tar.gz UXP-892a2d9655650616c361750a4d1a49f7d7914ad2.tar.lz UXP-892a2d9655650616c361750a4d1a49f7d7914ad2.tar.xz UXP-892a2d9655650616c361750a4d1a49f7d7914ad2.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 'widget/windows/WinUtils.h')
-rw-r--r-- | widget/windows/WinUtils.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/widget/windows/WinUtils.h b/widget/windows/WinUtils.h index 37469ce07..9aa2c1c8a 100644 --- a/widget/windows/WinUtils.h +++ b/widget/windows/WinUtils.h @@ -399,14 +399,6 @@ public: REFIID riid, void **ppv); /** - * SHGetKnownFolderPath() calls native SHGetKnownFolderPath() - * API which is available on Vista and up. - */ - static HRESULT SHGetKnownFolderPath(REFKNOWNFOLDERID rfid, - DWORD dwFlags, - HANDLE hToken, - PWSTR *ppszPath); - /** * GetShellItemPath return the file or directory path of a shell item. * Internally calls IShellItem's GetDisplayName. * @@ -529,12 +521,6 @@ private: REFIID riid, void **ppv); static SHCreateItemFromParsingNamePtr sCreateItemFromParsingName; - typedef HRESULT (WINAPI * SHGetKnownFolderPathPtr)(REFKNOWNFOLDERID rfid, - DWORD dwFlags, - HANDLE hToken, - PWSTR *ppszPath); - static SHGetKnownFolderPathPtr sGetKnownFolderPath; - static void GetWhitelistedPaths( nsTArray<mozilla::Pair<nsString,nsDependentString>>& aOutput); }; |