From e346ebb655ef2b17fbd195154ffbeba8cf435f40 Mon Sep 17 00:00:00 2001 From: Christoph von Wittich Date: Sun, 4 Jan 2009 11:42:09 +0000 Subject: [PATCH] sync riched20 with wine 1.1.12 svn path=/trunk/; revision=38558 --- reactos/dll/win32/riched20/editor.c | 6 +++--- reactos/dll/win32/riched20/table.c | 5 ++--- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/reactos/dll/win32/riched20/editor.c b/reactos/dll/win32/riched20/editor.c index 696061a3bb8..b5a69f78910 100644 --- a/reactos/dll/win32/riched20/editor.c +++ b/reactos/dll/win32/riched20/editor.c @@ -1616,7 +1616,7 @@ ME_StreamInRTFString(ME_TextEditor *editor, BOOL selection, char *string) data.string = string; data.length = strlen(string); data.pos = 0; - es.dwCookie = (DWORD)&data; + es.dwCookie = (DWORD_PTR)&data; es.pfnCallback = ME_ReadFromRTFString; ME_StreamIn(editor, SF_RTF | (selection ? SFF_SELECTION : 0), &es, FALSE); } @@ -2065,7 +2065,7 @@ static BOOL ME_Paste(ME_TextEditor *editor) return FALSE; gds.hData = GetClipboardData(cf); gds.nLength = 0; - es.dwCookie = (DWORD)&gds; + es.dwCookie = (DWORD_PTR)&gds; es.pfnCallback = dwFormat == SF_RTF ? ME_ReadFromHGLOBALRTF : ME_ReadFromHGLOBALUnicode; ME_StreamIn(editor, dwFormat|SFF_SELECTION, &es, FALSE); @@ -2685,6 +2685,7 @@ void ME_DestroyEditor(ME_TextEditor *editor) DeleteObject(editor->hbrBackground); if(editor->lpOleCallback) IUnknown_Release(editor->lpOleCallback); + SetWindowLongPtrW(editor->hWnd, 0, 0); OleUninitialize(); FREE_OBJ(editor->pBuffer); @@ -3821,7 +3822,6 @@ LRESULT ME_HandleMessage(ME_TextEditor *editor, UINT msg, WPARAM wParam, } case WM_DESTROY: ME_DestroyEditor(editor); - SetWindowLongPtrW(editor->hWnd, 0, 0); return 0; case WM_SETCURSOR: { diff --git a/reactos/dll/win32/riched20/table.c b/reactos/dll/win32/riched20/table.c index 3581306547a..c9aadb00f72 100644 --- a/reactos/dll/win32/riched20/table.c +++ b/reactos/dll/win32/riched20/table.c @@ -54,8 +54,7 @@ #include "editor.h" #include "rtf.h" -WINE_DEFAULT_DEBUG_CHANNEL(richedit); -WINE_DECLARE_DEBUG_CHANNEL(richedit_lists); +WINE_DEFAULT_DEBUG_CHANNEL(richedit_lists); static ME_DisplayItem* ME_InsertEndParaFromCursor(ME_TextEditor *editor, int nCursor, @@ -176,7 +175,7 @@ void ME_CheckTablesForCorruption(ME_TextEditor *editor) { if(TRACE_ON(richedit_lists)) { - TRACE_(richedit_lists)("---\n"); + TRACE("---\n"); ME_DumpDocument(editor->pBuffer); } #ifndef NDEBUG