Backed out changeset ed585dab6e3c (bug 1480457) for being obsolete. CLOSED TREE
authorCsoregi Natalia <ncsoregi@mozilla.com>
Thu, 30 Aug 2018 23:00:52 +0300
changeset 482486 79901f0800df50388ca995b04f03dc099f0633d0
parent 482485 ba4dd979f8e196606c5a0cebdbd98fe1aa73f019
child 482487 a4c481a0b09bb027d3662b5d536b223fdbf47979
push id232
push userfmarier@mozilla.com
push dateWed, 05 Sep 2018 20:45:54 +0000
bugs1480457
milestone63.0a1
backs outed585dab6e3cdef7ea5893c8ba4ed3050c53d896
Backed out changeset ed585dab6e3c (bug 1480457) for being obsolete. CLOSED TREE
browser/app/winlauncher/NativeNt.h
--- a/browser/app/winlauncher/NativeNt.h
+++ b/browser/app/winlauncher/NativeNt.h
@@ -560,26 +560,17 @@ private:
   void*             mImageLimit;
 };
 
 inline HANDLE
 RtlGetProcessHeap()
 {
   PTEB teb = ::NtCurrentTeb();
   PPEB peb = teb->ProcessEnvironmentBlock;
-#if !defined(__MINGW32__)
   return peb->Reserved4[1];
-#else
-  // MinGW treats Reserved4 as an array of bytes, rather than an
-  // array of void*'s. So we need to convert the correct offset
-  // into a void* and return it.
-  void* startOfHeapPtr = &peb->Reserved4[1 * sizeof(HANDLE)];
-  HANDLE* heapPtrPtr = (HANDLE*)startOfHeapPtr;
-  return *heapPtrPtr;
-#endif
 }
 
 inline Maybe<DWORD>
 GetParentProcessId()
 {
   struct PROCESS_BASIC_INFORMATION
   {
     NTSTATUS ExitStatus;