diff options
author | wolfbeast <mcwerewolf@gmail.com> | 2018-02-20 10:19:17 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@gmail.com> | 2018-02-20 10:19:17 +0100 |
commit | 5d1eb0d3aa590338930553cb7e09c43c4840ef1a (patch) | |
tree | 24d81bfbc659d826eb3eef5f3ac1cc4f3d000e50 /dom/media/platforms/wmf | |
parent | a930db1c9e8444ed89754c5a79085d59c7295952 (diff) | |
download | UXP-5d1eb0d3aa590338930553cb7e09c43c4840ef1a.tar UXP-5d1eb0d3aa590338930553cb7e09c43c4840ef1a.tar.gz UXP-5d1eb0d3aa590338930553cb7e09c43c4840ef1a.tar.lz UXP-5d1eb0d3aa590338930553cb7e09c43c4840ef1a.tar.xz UXP-5d1eb0d3aa590338930553cb7e09c43c4840ef1a.zip |
Remove more obsolete checks in dom/media and ipc.
Diffstat (limited to 'dom/media/platforms/wmf')
-rw-r--r-- | dom/media/platforms/wmf/WMFUtils.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/dom/media/platforms/wmf/WMFUtils.cpp b/dom/media/platforms/wmf/WMFUtils.cpp index 208131fef..b5747e326 100644 --- a/dom/media/platforms/wmf/WMFUtils.cpp +++ b/dom/media/platforms/wmf/WMFUtils.cpp @@ -210,16 +210,12 @@ MFStartup() return hr; } - const int MF_VISTA_VERSION = (0x0001 << 16 | MF_API_VERSION); - const int MF_WIN7_VERSION = (0x0002 << 16 | MF_API_VERSION); + const int MF_VERSION = (0x0002 << 16 | MF_API_VERSION); // decltype is unusable for functions having default parameters DECL_FUNCTION_PTR(MFStartup, ULONG, DWORD); ENSURE_FUNCTION_PTR_(MFStartup, Mfplat.dll) - if (!IsWin7OrLater()) - return MFStartupPtr(MF_VISTA_VERSION, MFSTARTUP_FULL); - else - return MFStartupPtr(MF_WIN7_VERSION, MFSTARTUP_FULL); + return MFStartupPtr(MF_VERSION, MFSTARTUP_FULL); } HRESULT |