VirtualBox

Changeset 57161 in vbox for trunk/src/VBox/HostDrivers


Ignore:
Timestamp:
Aug 3, 2015 4:31:15 PM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
101907
Message:

SUPR3HardenedMain-win.cpp: ext-ms-win-devmgmt-policy-l1-1-0.dll and its ext-ms-win-*.dll friends needs the same kind of special handling as we give api-ms-win-*.dll modules, otherwise the w10 file dialog won't load.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/win/SUPR3HardenedMain-win.cpp

    r56746 r57161  
    811811                        || RTStrCmp(uBuf.szName, "kernelbase.dll") == 0
    812812                        || RTStrCmp(uBuf.szName, "ntdll.dll") == 0
    813                         || RTStrNCmp(uBuf.szName, RT_STR_TUPLE("api-ms-win-")) == 0 )
     813                        || RTStrNCmp(uBuf.szName, RT_STR_TUPLE("api-ms-win-")) == 0
     814                        || RTStrNCmp(uBuf.szName, RT_STR_TUPLE("ext-ms-win-")) == 0
     815                       )
    814816                    {
    815817                        continue;
     
    17231725     * or something we're known to use but should be taken from WinSxS.
    17241726     */
    1725     else if (supHardViUtf16PathStartsWithEx(pName->Buffer, pName->Length / sizeof(WCHAR),
    1726                                             L"api-ms-win-", 11, false /*fCheckSlash*/))
     1727    else if (   supHardViUtf16PathStartsWithEx(pName->Buffer, pName->Length / sizeof(WCHAR),
     1728                                               L"api-ms-win-", 11, false /*fCheckSlash*/)
     1729             || supHardViUtf16PathStartsWithEx(pName->Buffer, pName->Length / sizeof(WCHAR),
     1730                                               L"ext-ms-win-", 11, false /*fCheckSlash*/)
     1731            )
    17271732    {
    17281733        memcpy(wszPath, pName->Buffer, pName->Length);
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette