riched20: Don't create custom heap.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru> Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
f232252951
commit
8bff437e9d
|
@ -246,7 +246,6 @@ static BOOL ME_UpdateLinkAttribute(ME_TextEditor *editor, ME_Cursor *start, int
|
|||
|
||||
HINSTANCE dll_instance = NULL;
|
||||
BOOL me_debug = FALSE;
|
||||
HANDLE me_heap = NULL;
|
||||
|
||||
static ME_TextBuffer *ME_MakeText(void) {
|
||||
ME_TextBuffer *buf = heap_alloc(sizeof(*buf));
|
||||
|
|
|
@ -23,7 +23,6 @@
|
|||
struct _RTF_Info;
|
||||
|
||||
extern HINSTANCE dll_instance DECLSPEC_HIDDEN;
|
||||
extern HANDLE me_heap DECLSPEC_HIDDEN;
|
||||
|
||||
#define RUN_IS_HIDDEN(run) ((run)->style->fmt.dwMask & CFM_HIDDEN \
|
||||
&& (run)->style->fmt.dwEffects & CFE_HIDDEN)
|
||||
|
|
|
@ -1639,7 +1639,6 @@ BOOL WINAPI DllMain( HINSTANCE instance, DWORD reason, void *reserved )
|
|||
case DLL_PROCESS_ATTACH:
|
||||
dll_instance = instance;
|
||||
DisableThreadLibraryCalls( instance );
|
||||
me_heap = HeapCreate( 0, 0x10000, 0 );
|
||||
if (!register_classes( instance )) return FALSE;
|
||||
LookupInit();
|
||||
break;
|
||||
|
@ -1653,7 +1652,6 @@ BOOL WINAPI DllMain( HINSTANCE instance, DWORD reason, void *reserved )
|
|||
if (listbox_registered) UnregisterClassW( L"REListBox20W", 0 );
|
||||
if (combobox_registered) UnregisterClassW( L"REComboBox20W", 0 );
|
||||
LookupCleanup();
|
||||
HeapDestroy( me_heap );
|
||||
release_typelib();
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue