Ignore:
Timestamp:
Jun 18, 2009, 6:27:45 PM (16 years ago)
Author:
ydario
Message:

Minor updates, backout imm changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/riched32/richedit.c

    r9859 r21308  
    4343WINE_DEFAULT_DEBUG_CHANNEL(richedit);
    4444
     45#ifdef __WIN32OS2__
     46/** custom build hack. */
     47BOOL (* WINAPI pfnCustomRichedHack_EM_STREAMIN)(HWND, LPSTR) = NULL;
     48#endif
     49
    4550HANDLE RICHED32_hHeap = (HANDLE)NULL;
    4651/* LPSTR  RICHED32_aSubclass = (LPSTR)NULL; */
     
    198203            {
    199204                RTFToBuffer(rtfBuffer, rtfBufferSize);
     205#ifdef __WIN32OS2__
     206                /* This is a very very ugly hack to work around some major parsing errors. */
     207                if (pfnCustomRichedHack_EM_STREAMIN)
     208                    pfnCustomRichedHack_EM_STREAMIN(hwnd, rtfBuffer);
     209                else
     210#endif
    200211                SetWindowTextA(hwnd,rtfBuffer);
    201212                HeapFree(RICHED32_hHeap, 0,rtfBuffer);
     
    843854        return ret;
    844855}
     856
     857
     858#ifdef __WIN32OS2__
     859/** Enables a callback replacement for the SetWindowTextA call finalizing
     860 * the handling of an EM_STREAMIN message.
     861 * @remark don't use this hack.
     862 */
     863BOOL WINAPI ODIN_RichedHack_EM_STREAMIN(BOOL (* WINAPI pfn)(HWND, LPSTR))
     864{
     865    pfnCustomRichedHack_EM_STREAMIN = pfn;
     866    return TRUE;
     867}
     868#endif
     869
Note: See TracChangeset for help on using the changeset viewer.