Index: ps/trunk/source/lib/sysdep/os/win/wutil.cpp =================================================================== --- ps/trunk/source/lib/sysdep/os/win/wutil.cpp +++ ps/trunk/source/lib/sysdep/os/win/wutil.cpp @@ -256,31 +256,6 @@ } //----------------------------------------------------------------------------- -// memory - -static void EnableLowFragmentationHeap() -{ - if(IsDebuggerPresent()) - { - // and the debug heap isn't explicitly disabled, - char* var = getenv("_NO_DEBUG_HEAP"); - if(!var || var[0] != '1') - return; // we can't enable the LFH - } - -#if WINVER >= 0x0501 - WUTIL_FUNC(pHeapSetInformation, BOOL, (HANDLE, HEAP_INFORMATION_CLASS, void*, size_t)); - WUTIL_IMPORT_KERNEL32(HeapSetInformation, pHeapSetInformation); - if(pHeapSetInformation) - { - ULONG flags = 2; // enable LFH - pHeapSetInformation(GetProcessHeap(), HeapCompatibilityInformation, &flags, sizeof(flags)); - } -#endif // #if WINVER >= 0x0501 -} - - -//----------------------------------------------------------------------------- Status wutil_SetPrivilege(const wchar_t* privilege, bool enable) { @@ -393,8 +368,6 @@ { InitLocks(); - EnableLowFragmentationHeap(); - GetDirectories(); return INFO::OK;