Commit 8bff437e authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

riched20: Don't create custom heap.

parent f2322529
...@@ -246,7 +246,6 @@ static BOOL ME_UpdateLinkAttribute(ME_TextEditor *editor, ME_Cursor *start, int ...@@ -246,7 +246,6 @@ static BOOL ME_UpdateLinkAttribute(ME_TextEditor *editor, ME_Cursor *start, int
HINSTANCE dll_instance = NULL; HINSTANCE dll_instance = NULL;
BOOL me_debug = FALSE; BOOL me_debug = FALSE;
HANDLE me_heap = NULL;
static ME_TextBuffer *ME_MakeText(void) { static ME_TextBuffer *ME_MakeText(void) {
ME_TextBuffer *buf = heap_alloc(sizeof(*buf)); ME_TextBuffer *buf = heap_alloc(sizeof(*buf));
......
...@@ -23,7 +23,6 @@ ...@@ -23,7 +23,6 @@
struct _RTF_Info; struct _RTF_Info;
extern HINSTANCE dll_instance DECLSPEC_HIDDEN; extern HINSTANCE dll_instance DECLSPEC_HIDDEN;
extern HANDLE me_heap DECLSPEC_HIDDEN;
#define RUN_IS_HIDDEN(run) ((run)->style->fmt.dwMask & CFM_HIDDEN \ #define RUN_IS_HIDDEN(run) ((run)->style->fmt.dwMask & CFM_HIDDEN \
&& (run)->style->fmt.dwEffects & CFE_HIDDEN) && (run)->style->fmt.dwEffects & CFE_HIDDEN)
......
...@@ -1639,7 +1639,6 @@ BOOL WINAPI DllMain( HINSTANCE instance, DWORD reason, void *reserved ) ...@@ -1639,7 +1639,6 @@ BOOL WINAPI DllMain( HINSTANCE instance, DWORD reason, void *reserved )
case DLL_PROCESS_ATTACH: case DLL_PROCESS_ATTACH:
dll_instance = instance; dll_instance = instance;
DisableThreadLibraryCalls( instance ); DisableThreadLibraryCalls( instance );
me_heap = HeapCreate( 0, 0x10000, 0 );
if (!register_classes( instance )) return FALSE; if (!register_classes( instance )) return FALSE;
LookupInit(); LookupInit();
break; break;
...@@ -1653,7 +1652,6 @@ BOOL WINAPI DllMain( HINSTANCE instance, DWORD reason, void *reserved ) ...@@ -1653,7 +1652,6 @@ BOOL WINAPI DllMain( HINSTANCE instance, DWORD reason, void *reserved )
if (listbox_registered) UnregisterClassW( L"REListBox20W", 0 ); if (listbox_registered) UnregisterClassW( L"REListBox20W", 0 );
if (combobox_registered) UnregisterClassW( L"REComboBox20W", 0 ); if (combobox_registered) UnregisterClassW( L"REComboBox20W", 0 );
LookupCleanup(); LookupCleanup();
HeapDestroy( me_heap );
release_typelib(); release_typelib();
break; break;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment