Version 6.4.0.0.beta1, tag libreoffice-6.4.0.0.beta1
[LibreOffice.git] / external / pdfium / windows7.patch.1
blobd33f273ff4cacc1dab3e22ac4031a288240ee9be
1 diff --git a/third_party/base/win/win_util.cc b/third_party/base/win/win_util.cc
2 index ae2dba84d..7a3718848 100644
3 --- a/third_party/base/win/win_util.cc
4 +++ b/third_party/base/win/win_util.cc
5 @@ -12,28 +12,7 @@ namespace base {
6  namespace win {
7  
8  bool IsUser32AndGdi32Available() {
9 -  static auto is_user32_and_gdi32_available = []() {
10 -    // If win32k syscalls aren't disabled, then user32 and gdi32 are available.
12 -    typedef decltype(
13 -        GetProcessMitigationPolicy)* GetProcessMitigationPolicyType;
14 -    GetProcessMitigationPolicyType get_process_mitigation_policy_func =
15 -        reinterpret_cast<GetProcessMitigationPolicyType>(GetProcAddress(
16 -            GetModuleHandle(L"kernel32.dll"), "GetProcessMitigationPolicy"));
18 -    if (!get_process_mitigation_policy_func)
19 -      return true;
21 -    PROCESS_MITIGATION_SYSTEM_CALL_DISABLE_POLICY policy = {};
22 -    if (get_process_mitigation_policy_func(GetCurrentProcess(),
23 -                                           ProcessSystemCallDisablePolicy,
24 -                                           &policy, sizeof(policy))) {
25 -      return policy.DisallowWin32kSystemCalls == 0;
26 -    }
28 -    return true;
29 -  }();
30 -  return is_user32_and_gdi32_available;
31 +  return true;
32  }
34  }  // namespace win