[Win] Remove WinXP support.
authorpeavo@outlook.com <peavo@outlook.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 6 May 2016 16:18:01 +0000 (16:18 +0000)
committerpeavo@outlook.com <peavo@outlook.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 6 May 2016 16:18:01 +0000 (16:18 +0000)
https://bugs.webkit.org/show_bug.cgi?id=157416

Reviewed by Brent Fulgham.

* win/DLLLauncher/DLLLauncherMain.cpp:
(enableTerminationOnHeapCorruption):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@200512 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Tools/ChangeLog
Tools/win/DLLLauncher/DLLLauncherMain.cpp

index 8bc3927..8facb64 100644 (file)
@@ -1,3 +1,13 @@
+2016-05-06  Per Arne Vollan  <peavo@outlook.com>
+
+        [Win] Remove WinXP support.
+        https://bugs.webkit.org/show_bug.cgi?id=157416
+
+        Reviewed by Brent Fulgham.
+
+        * win/DLLLauncher/DLLLauncherMain.cpp:
+        (enableTerminationOnHeapCorruption):
+
 2016-05-06  Manuel Rego Casasnovas  <rego@igalia.com>
 
         [css-grid] Unprefix CSS Grid Layout properties
index ef158b3..392119d 100644 (file)
@@ -51,21 +51,8 @@ using namespace std;
 
 static void enableTerminationOnHeapCorruption()
 {
-    // Enable termination on heap corruption on OSes that support it (Vista and XPSP3).
-    // http://msdn.microsoft.com/en-us/library/aa366705(VS.85).aspx
-
     HEAP_INFORMATION_CLASS heapEnableTerminationOnCorruption = static_cast<HEAP_INFORMATION_CLASS>(1);
-
-    HMODULE module = ::GetModuleHandleW(L"kernel32.dll");
-    if (!module)
-        return;
-
-    typedef BOOL (WINAPI*HSI)(HANDLE, HEAP_INFORMATION_CLASS, PVOID, SIZE_T);
-    HSI heapSetInformation = reinterpret_cast<HSI>(::GetProcAddress(module, "HeapSetInformation"));
-    if (!heapSetInformation)
-        return;
-
-    heapSetInformation(0, heapEnableTerminationOnCorruption, 0, 0);
+    HeapSetInformation(0, heapEnableTerminationOnCorruption, 0, 0);
 }
 
 static wstring getStringValue(HKEY key, const wstring& valueName)