Commit 42d0e566 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

riched20: Enable compilation with long types.

parent 422f362a
EXTRADEFS = -DWINE_NO_LONG_TYPES
MODULE = riched20.dll MODULE = riched20.dll
IMPORTLIB = riched20 IMPORTLIB = riched20
IMPORTS = uuid usp10 ole32 oleaut32 imm32 user32 gdi32 IMPORTS = uuid usp10 ole32 oleaut32 imm32 user32 gdi32
......
...@@ -1387,7 +1387,7 @@ void ME_SendSelChange(ME_TextEditor *editor) ...@@ -1387,7 +1387,7 @@ void ME_SendSelChange(ME_TextEditor *editor)
if (editor->nEventMask & ENM_SELCHANGE) if (editor->nEventMask & ENM_SELCHANGE)
{ {
TRACE("cpMin=%d cpMax=%d seltyp=%d (%s %s)\n", TRACE("cpMin=%ld cpMax=%ld seltyp=%d (%s %s)\n",
sc.chrg.cpMin, sc.chrg.cpMax, sc.seltyp, sc.chrg.cpMin, sc.chrg.cpMax, sc.seltyp,
(sc.seltyp & SEL_TEXT) ? "SEL_TEXT" : "", (sc.seltyp & SEL_TEXT) ? "SEL_TEXT" : "",
(sc.seltyp & SEL_MULTICHAR) ? "SEL_MULTICHAR" : ""); (sc.seltyp & SEL_MULTICHAR) ? "SEL_MULTICHAR" : "");
......
...@@ -77,7 +77,7 @@ static ULONG WINAPI EnumFormatImpl_AddRef(IEnumFORMATETC *iface) ...@@ -77,7 +77,7 @@ static ULONG WINAPI EnumFormatImpl_AddRef(IEnumFORMATETC *iface)
{ {
EnumFormatImpl *This = impl_from_IEnumFORMATETC(iface); EnumFormatImpl *This = impl_from_IEnumFORMATETC(iface);
LONG ref = InterlockedIncrement(&This->ref); LONG ref = InterlockedIncrement(&This->ref);
TRACE("(%p) ref=%d\n", This, ref); TRACE("(%p) ref=%ld\n", This, ref);
return ref; return ref;
} }
...@@ -85,7 +85,7 @@ static ULONG WINAPI EnumFormatImpl_Release(IEnumFORMATETC *iface) ...@@ -85,7 +85,7 @@ static ULONG WINAPI EnumFormatImpl_Release(IEnumFORMATETC *iface)
{ {
EnumFormatImpl *This = impl_from_IEnumFORMATETC(iface); EnumFormatImpl *This = impl_from_IEnumFORMATETC(iface);
ULONG ref = InterlockedDecrement(&This->ref); ULONG ref = InterlockedDecrement(&This->ref);
TRACE("(%p) ref=%d\n", This, ref); TRACE("(%p) ref=%ld\n", This, ref);
if(!ref) { if(!ref) {
GlobalFree(This->fmtetc); GlobalFree(This->fmtetc);
...@@ -100,7 +100,7 @@ static HRESULT WINAPI EnumFormatImpl_Next(IEnumFORMATETC *iface, ULONG celt, ...@@ -100,7 +100,7 @@ static HRESULT WINAPI EnumFormatImpl_Next(IEnumFORMATETC *iface, ULONG celt,
{ {
EnumFormatImpl *This = impl_from_IEnumFORMATETC(iface); EnumFormatImpl *This = impl_from_IEnumFORMATETC(iface);
ULONG count = 0; ULONG count = 0;
TRACE("(%p)->(%d %p %p)\n", This, celt, rgelt, pceltFetched); TRACE("(%p)->(%ld %p %p)\n", This, celt, rgelt, pceltFetched);
if(!rgelt) if(!rgelt)
return E_INVALIDARG; return E_INVALIDARG;
...@@ -119,7 +119,7 @@ static HRESULT WINAPI EnumFormatImpl_Skip(IEnumFORMATETC *iface, ULONG celt) ...@@ -119,7 +119,7 @@ static HRESULT WINAPI EnumFormatImpl_Skip(IEnumFORMATETC *iface, ULONG celt)
{ {
EnumFormatImpl *This = impl_from_IEnumFORMATETC(iface); EnumFormatImpl *This = impl_from_IEnumFORMATETC(iface);
ULONG count = 0; ULONG count = 0;
TRACE("(%p)->(%d)\n", This, celt); TRACE("(%p)->(%ld)\n", This, celt);
count = min(celt, This->fmtetc_cnt-This->cur); count = min(celt, This->fmtetc_cnt-This->cur);
This->cur += count; This->cur += count;
...@@ -194,7 +194,7 @@ static ULONG WINAPI DataObjectImpl_AddRef(IDataObject* iface) ...@@ -194,7 +194,7 @@ static ULONG WINAPI DataObjectImpl_AddRef(IDataObject* iface)
{ {
DataObjectImpl *This = impl_from_IDataObject(iface); DataObjectImpl *This = impl_from_IDataObject(iface);
ULONG ref = InterlockedIncrement(&This->ref); ULONG ref = InterlockedIncrement(&This->ref);
TRACE("(%p) ref=%d\n", This, ref); TRACE("(%p) ref=%ld\n", This, ref);
return ref; return ref;
} }
...@@ -202,7 +202,7 @@ static ULONG WINAPI DataObjectImpl_Release(IDataObject* iface) ...@@ -202,7 +202,7 @@ static ULONG WINAPI DataObjectImpl_Release(IDataObject* iface)
{ {
DataObjectImpl *This = impl_from_IDataObject(iface); DataObjectImpl *This = impl_from_IDataObject(iface);
ULONG ref = InterlockedDecrement(&This->ref); ULONG ref = InterlockedDecrement(&This->ref);
TRACE("(%p) ref=%d\n",This, ref); TRACE("(%p) ref=%ld\n",This, ref);
if(!ref) { if(!ref) {
if(This->unicode) GlobalFree(This->unicode); if(This->unicode) GlobalFree(This->unicode);
...@@ -217,7 +217,7 @@ static ULONG WINAPI DataObjectImpl_Release(IDataObject* iface) ...@@ -217,7 +217,7 @@ static ULONG WINAPI DataObjectImpl_Release(IDataObject* iface)
static HRESULT WINAPI DataObjectImpl_GetData(IDataObject* iface, FORMATETC *pformatetc, STGMEDIUM *pmedium) static HRESULT WINAPI DataObjectImpl_GetData(IDataObject* iface, FORMATETC *pformatetc, STGMEDIUM *pmedium)
{ {
DataObjectImpl *This = impl_from_IDataObject(iface); DataObjectImpl *This = impl_from_IDataObject(iface);
TRACE("(%p)->(fmt=0x%08x tym=0x%08x)\n", This, pformatetc->cfFormat, pformatetc->tymed); TRACE("(%p)->(fmt=0x%08x tym=0x%08lx)\n", This, pformatetc->cfFormat, pformatetc->tymed);
if(pformatetc->lindex != -1) if(pformatetc->lindex != -1)
return DV_E_LINDEX; return DV_E_LINDEX;
...@@ -250,7 +250,7 @@ static HRESULT WINAPI DataObjectImpl_QueryGetData(IDataObject* iface, FORMATETC ...@@ -250,7 +250,7 @@ static HRESULT WINAPI DataObjectImpl_QueryGetData(IDataObject* iface, FORMATETC
DataObjectImpl *This = impl_from_IDataObject(iface); DataObjectImpl *This = impl_from_IDataObject(iface);
UINT i; UINT i;
BOOL foundFormat = FALSE; BOOL foundFormat = FALSE;
TRACE("(%p)->(fmt=0x%08x tym=0x%08x)\n", This, pformatetc->cfFormat, pformatetc->tymed); TRACE("(%p)->(fmt=0x%08x tym=0x%08lx)\n", This, pformatetc->cfFormat, pformatetc->tymed);
if(pformatetc->lindex != -1) if(pformatetc->lindex != -1)
return DV_E_LINDEX; return DV_E_LINDEX;
...@@ -290,10 +290,10 @@ static HRESULT WINAPI DataObjectImpl_EnumFormatEtc(IDataObject* iface, DWORD dwD ...@@ -290,10 +290,10 @@ static HRESULT WINAPI DataObjectImpl_EnumFormatEtc(IDataObject* iface, DWORD dwD
IEnumFORMATETC **ppenumFormatEtc) IEnumFORMATETC **ppenumFormatEtc)
{ {
DataObjectImpl *This = impl_from_IDataObject(iface); DataObjectImpl *This = impl_from_IDataObject(iface);
TRACE("(%p)->(%d)\n", This, dwDirection); TRACE("(%p)->(%ld)\n", This, dwDirection);
if(dwDirection != DATADIR_GET) { if(dwDirection != DATADIR_GET) {
FIXME("Unsupported direction: %d\n", dwDirection); FIXME("Unsupported direction: %ld\n", dwDirection);
/* WinXP riched20 also returns E_NOTIMPL in this case */ /* WinXP riched20 also returns E_NOTIMPL in this case */
*ppenumFormatEtc = NULL; *ppenumFormatEtc = NULL;
return E_NOTIMPL; return E_NOTIMPL;
......
...@@ -293,7 +293,7 @@ static LRESULT ME_StreamInText(ME_TextEditor *editor, DWORD dwFormat, ME_InStrea ...@@ -293,7 +293,7 @@ static LRESULT ME_StreamInText(ME_TextEditor *editor, DWORD dwFormat, ME_InStrea
static const char bom_utf8[] = {0xEF, 0xBB, 0xBF}; static const char bom_utf8[] = {0xEF, 0xBB, 0xBF};
TRACE("%08x %p\n", dwFormat, stream); TRACE("%08lx %p\n", dwFormat, stream);
do { do {
LONG nWideChars = 0; LONG nWideChars = 0;
...@@ -1575,7 +1575,7 @@ static LRESULT ME_StreamIn(ME_TextEditor *editor, DWORD format, EDITSTREAM *stre ...@@ -1575,7 +1575,7 @@ static LRESULT ME_StreamIn(ME_TextEditor *editor, DWORD format, EDITSTREAM *stre
ME_Cursor *selStart, *selEnd; ME_Cursor *selStart, *selEnd;
LRESULT num_read = 0; /* bytes read for SF_TEXT, non-control chars inserted for SF_RTF */ LRESULT num_read = 0; /* bytes read for SF_TEXT, non-control chars inserted for SF_RTF */
TRACE("stream==%p editor==%p format==0x%X\n", stream, editor, format); TRACE("stream==%p editor==%p format==0x%lX\n", stream, editor, format);
editor->nEventMask = 0; editor->nEventMask = 0;
ME_GetSelectionOfs(editor, &from, &to); ME_GetSelectionOfs(editor, &from, &to);
...@@ -1841,11 +1841,11 @@ ME_FindText(ME_TextEditor *editor, DWORD flags, const CHARRANGE *chrg, const WCH ...@@ -1841,11 +1841,11 @@ ME_FindText(ME_TextEditor *editor, DWORD flags, const CHARRANGE *chrg, const WCH
ME_Cursor cursor; ME_Cursor cursor;
WCHAR wLastChar = ' '; WCHAR wLastChar = ' ';
TRACE("flags==0x%08x, chrg->cpMin==%d, chrg->cpMax==%d text==%s\n", TRACE("flags==0x%08lx, chrg->cpMin==%ld, chrg->cpMax==%ld text==%s\n",
flags, chrg->cpMin, chrg->cpMax, debugstr_w(text)); flags, chrg->cpMin, chrg->cpMax, debugstr_w(text));
if (flags & ~(FR_DOWN | FR_MATCHCASE | FR_WHOLEWORD)) if (flags & ~(FR_DOWN | FR_MATCHCASE | FR_WHOLEWORD))
FIXME("Flags 0x%08x not implemented\n", FIXME("Flags 0x%08lx not implemented\n",
flags & ~(FR_DOWN | FR_MATCHCASE | FR_WHOLEWORD)); flags & ~(FR_DOWN | FR_MATCHCASE | FR_WHOLEWORD));
nMin = chrg->cpMin; nMin = chrg->cpMin;
...@@ -2084,7 +2084,7 @@ static int ME_GetTextEx(ME_TextEditor *editor, GETTEXTEX *ex, LPARAM pText) ...@@ -2084,7 +2084,7 @@ static int ME_GetTextEx(ME_TextEditor *editor, GETTEXTEX *ex, LPARAM pText)
if (!ex->cb || !pText) return 0; if (!ex->cb || !pText) return 0;
if (ex->flags & ~(GT_SELECTION | GT_USECRLF)) if (ex->flags & ~(GT_SELECTION | GT_USECRLF))
FIXME("GETTEXTEX flags 0x%08x not supported\n", ex->flags & ~(GT_SELECTION | GT_USECRLF)); FIXME("GETTEXTEX flags 0x%08lx not supported\n", ex->flags & ~(GT_SELECTION | GT_USECRLF));
if (ex->flags & GT_SELECTION) if (ex->flags & GT_SELECTION)
{ {
...@@ -2284,7 +2284,7 @@ static BOOL paste_special(ME_TextEditor *editor, UINT cf, REPASTESPECIAL *ps, BO ...@@ -2284,7 +2284,7 @@ static BOOL paste_special(ME_TextEditor *editor, UINT cf, REPASTESPECIAL *ps, BO
init_paste_formats(); init_paste_formats();
if (ps && ps->dwAspect != DVASPECT_CONTENT) if (ps && ps->dwAspect != DVASPECT_CONTENT)
FIXME("Ignoring aspect %x\n", ps->dwAspect); FIXME("Ignoring aspect %lx\n", ps->dwAspect);
hr = OleGetClipboard( &data ); hr = OleGetClipboard( &data );
if (hr != S_OK) return FALSE; if (hr != S_OK) return FALSE;
...@@ -3294,7 +3294,7 @@ LRESULT editor_handle_message( ME_TextEditor *editor, UINT msg, WPARAM wParam, ...@@ -3294,7 +3294,7 @@ LRESULT editor_handle_message( ME_TextEditor *editor, UINT msg, WPARAM wParam,
{ {
CHARRANGE *pRange = (CHARRANGE *)lParam; CHARRANGE *pRange = (CHARRANGE *)lParam;
ME_GetSelectionOfs(editor, &pRange->cpMin, &pRange->cpMax); ME_GetSelectionOfs(editor, &pRange->cpMin, &pRange->cpMax);
TRACE("EM_EXGETSEL = (%d,%d)\n", pRange->cpMin, pRange->cpMax); TRACE("EM_EXGETSEL = (%ld,%ld)\n", pRange->cpMin, pRange->cpMax);
return 0; return 0;
} }
case EM_SETUNDOLIMIT: case EM_SETUNDOLIMIT:
...@@ -3407,7 +3407,7 @@ LRESULT editor_handle_message( ME_TextEditor *editor, UINT msg, WPARAM wParam, ...@@ -3407,7 +3407,7 @@ LRESULT editor_handle_message( ME_TextEditor *editor, UINT msg, WPARAM wParam,
bUnicode = !bRtf && pStruct->codepage == CP_UNICODE; bUnicode = !bRtf && pStruct->codepage == CP_UNICODE;
bUTF8 = (lParam && (!strncmp((char *)lParam, utf8_bom, 3))); bUTF8 = (lParam && (!strncmp((char *)lParam, utf8_bom, 3)));
TRACE("EM_SETTEXTEX - %s, flags %d, cp %d\n", TRACE("EM_SETTEXTEX - %s, flags %ld, cp %d\n",
bUnicode ? debugstr_w((LPCWSTR)lParam) : debugstr_a((LPCSTR)lParam), bUnicode ? debugstr_w((LPCWSTR)lParam) : debugstr_a((LPCSTR)lParam),
pStruct->flags, pStruct->codepage); pStruct->flags, pStruct->codepage);
...@@ -3606,7 +3606,7 @@ LRESULT editor_handle_message( ME_TextEditor *editor, UINT msg, WPARAM wParam, ...@@ -3606,7 +3606,7 @@ LRESULT editor_handle_message( ME_TextEditor *editor, UINT msg, WPARAM wParam,
ME_InternalDeleteText(editor, &cursor, ME_GetTextLength(editor), FALSE); ME_InternalDeleteText(editor, &cursor, ME_GetTextLength(editor), FALSE);
if (lParam) if (lParam)
{ {
TRACE("WM_SETTEXT lParam==%lx\n",lParam); TRACE("WM_SETTEXT lParam==%Ix\n",lParam);
if (!strncmp((char *)lParam, "{\\rtf", 5) || if (!strncmp((char *)lParam, "{\\rtf", 5) ||
!strncmp((char *)lParam, "{\\urtf", 6)) !strncmp((char *)lParam, "{\\urtf", 6))
{ {
...@@ -3689,7 +3689,7 @@ LRESULT editor_handle_message( ME_TextEditor *editor, UINT msg, WPARAM wParam, ...@@ -3689,7 +3689,7 @@ LRESULT editor_handle_message( ME_TextEditor *editor, UINT msg, WPARAM wParam,
int nEnd = rng->chrg.cpMax; int nEnd = rng->chrg.cpMax;
int textlength = ME_GetTextLength(editor); int textlength = ME_GetTextLength(editor);
TRACE( "EM_GETTEXTRANGE min = %d max = %d textlength = %d\n", rng->chrg.cpMin, rng->chrg.cpMax, textlength ); TRACE( "EM_GETTEXTRANGE min = %ld max = %ld textlength = %d\n", rng->chrg.cpMin, rng->chrg.cpMax, textlength );
if (nStart < 0) return 0; if (nStart < 0) return 0;
if ((nStart == 0 && nEnd == -1) || nEnd > textlength) if ((nStart == 0 && nEnd == -1) || nEnd > textlength)
nEnd = textlength; nEnd = textlength;
...@@ -3803,7 +3803,7 @@ LRESULT editor_handle_message( ME_TextEditor *editor, UINT msg, WPARAM wParam, ...@@ -3803,7 +3803,7 @@ LRESULT editor_handle_message( ME_TextEditor *editor, UINT msg, WPARAM wParam,
start_ofs = ME_GetCursorOfs( &cursor ); start_ofs = ME_GetCursorOfs( &cursor );
row_end_cursor( row, &cursor, FALSE ); row_end_cursor( row, &cursor, FALSE );
end_ofs = ME_GetCursorOfs( &cursor ); end_ofs = ME_GetCursorOfs( &cursor );
TRACE( "EM_LINELENGTH(%ld)==%d\n", wParam, end_ofs - start_ofs ); TRACE( "EM_LINELENGTH(%Id)==%d\n", wParam, end_ofs - start_ofs );
return end_ofs - start_ofs; return end_ofs - start_ofs;
} }
case EM_EXLIMITTEXT: case EM_EXLIMITTEXT:
......
...@@ -806,10 +806,10 @@ void ME_DumpParaStyleToBuf(const PARAFORMAT2 *pFmt, char buf[2048]) ...@@ -806,10 +806,10 @@ void ME_DumpParaStyleToBuf(const PARAFORMAT2 *pFmt, char buf[2048])
DUMP_EFFECT(PFM_RTLPARA, "RTL para:"); DUMP_EFFECT(PFM_RTLPARA, "RTL para:");
DUMP_EFFECT(PFM_SIDEBYSIDE, "Side by side:"); DUMP_EFFECT(PFM_SIDEBYSIDE, "Side by side:");
DUMP_EFFECT(PFM_TABLE, "Table:"); DUMP_EFFECT(PFM_TABLE, "Table:");
DUMP(PFM_OFFSETINDENT, "Offset indent:", "%d", dxStartIndent); DUMP(PFM_OFFSETINDENT, "Offset indent:", "%ld", dxStartIndent);
DUMP(PFM_STARTINDENT, "Start indent:", "%d", dxStartIndent); DUMP(PFM_STARTINDENT, "Start indent:", "%ld", dxStartIndent);
DUMP(PFM_RIGHTINDENT, "Right indent:", "%d", dxRightIndent); DUMP(PFM_RIGHTINDENT, "Right indent:", "%ld", dxRightIndent);
DUMP(PFM_OFFSET, "Offset:", "%d", dxOffset); DUMP(PFM_OFFSET, "Offset:", "%ld", dxOffset);
if (pFmt->dwMask & PFM_ALIGNMENT) { if (pFmt->dwMask & PFM_ALIGNMENT) {
switch (pFmt->wAlignment) { switch (pFmt->wAlignment) {
case PFA_LEFT : p += sprintf(p, "Alignment: left\n"); break; case PFA_LEFT : p += sprintf(p, "Alignment: left\n"); break;
...@@ -824,12 +824,12 @@ void ME_DumpParaStyleToBuf(const PARAFORMAT2 *pFmt, char buf[2048]) ...@@ -824,12 +824,12 @@ void ME_DumpParaStyleToBuf(const PARAFORMAT2 *pFmt, char buf[2048])
if (pFmt->dwMask & PFM_TABSTOPS) { if (pFmt->dwMask & PFM_TABSTOPS) {
int i; int i;
p += sprintf(p, "\t"); p += sprintf(p, "\t");
for (i = 0; i < pFmt->cTabCount; i++) p += sprintf(p, "%x ", pFmt->rgxTabs[i]); for (i = 0; i < pFmt->cTabCount; i++) p += sprintf(p, "%lx ", pFmt->rgxTabs[i]);
p += sprintf(p, "\n"); p += sprintf(p, "\n");
} }
DUMP(PFM_SPACEBEFORE, "Space Before:", "%d", dySpaceBefore); DUMP(PFM_SPACEBEFORE, "Space Before:", "%ld", dySpaceBefore);
DUMP(PFM_SPACEAFTER, "Space After:", "%d", dySpaceAfter); DUMP(PFM_SPACEAFTER, "Space After:", "%ld", dySpaceAfter);
DUMP(PFM_LINESPACING, "Line spacing:", "%d", dyLineSpacing); DUMP(PFM_LINESPACING, "Line spacing:", "%ld", dyLineSpacing);
DUMP(PFM_STYLE, "Text style:", "%d", sStyle); DUMP(PFM_STYLE, "Text style:", "%d", sStyle);
DUMP(PFM_LINESPACING, "Line spacing rule:", "%u", bLineSpacingRule); DUMP(PFM_LINESPACING, "Line spacing rule:", "%u", bLineSpacingRule);
/* bOutlineLevel should be 0 */ /* bOutlineLevel should be 0 */
......
...@@ -82,7 +82,7 @@ static HRESULT load_typelib(void) ...@@ -82,7 +82,7 @@ static HRESULT load_typelib(void)
hr = LoadRegTypeLib(&LIBID_tom, 1, 0, LOCALE_SYSTEM_DEFAULT, &tl); hr = LoadRegTypeLib(&LIBID_tom, 1, 0, LOCALE_SYSTEM_DEFAULT, &tl);
if (FAILED(hr)) { if (FAILED(hr)) {
ERR("LoadRegTypeLib failed: %08x\n", hr); ERR("LoadRegTypeLib failed: %08lx\n", hr);
return hr; return hr;
} }
...@@ -121,7 +121,7 @@ static HRESULT get_typeinfo(enum tid_t tid, ITypeInfo **typeinfo) ...@@ -121,7 +121,7 @@ static HRESULT get_typeinfo(enum tid_t tid, ITypeInfo **typeinfo)
hr = ITypeLib_GetTypeInfoOfGuid(typelib, tid_ids[tid], &ti); hr = ITypeLib_GetTypeInfoOfGuid(typelib, tid_ids[tid], &ti);
if (FAILED(hr)) if (FAILED(hr))
{ {
ERR("GetTypeInfoOfGuid(%s) failed: %08x\n", debugstr_guid(tid_ids[tid]), hr); ERR("GetTypeInfoOfGuid(%s) failed: %08lx\n", debugstr_guid(tid_ids[tid]), hr);
return hr; return hr;
} }
...@@ -889,7 +889,7 @@ static HRESULT textrange_expand(ITextRange *range, LONG unit, LONG *delta) ...@@ -889,7 +889,7 @@ static HRESULT textrange_expand(ITextRange *range, LONG unit, LONG *delta)
ITextRange_GetStoryLength(range, &expand_end); ITextRange_GetStoryLength(range, &expand_end);
break; break;
default: default:
FIXME("unit %d is not supported\n", unit); FIXME("unit %ld is not supported\n", unit);
return E_NOTIMPL; return E_NOTIMPL;
} }
...@@ -984,7 +984,7 @@ static ULONG WINAPI IOleClientSite_fnAddRef(IOleClientSite *iface) ...@@ -984,7 +984,7 @@ static ULONG WINAPI IOleClientSite_fnAddRef(IOleClientSite *iface)
{ {
IOleClientSiteImpl *This = impl_from_IOleClientSite(iface); IOleClientSiteImpl *This = impl_from_IOleClientSite(iface);
ULONG ref = InterlockedIncrement(&This->ref); ULONG ref = InterlockedIncrement(&This->ref);
TRACE("(%p)->(%u)\n", This, ref); TRACE("(%p)->(%lu)\n", This, ref);
return ref; return ref;
} }
...@@ -993,7 +993,7 @@ static ULONG WINAPI IOleClientSite_fnRelease(IOleClientSite *iface) ...@@ -993,7 +993,7 @@ static ULONG WINAPI IOleClientSite_fnRelease(IOleClientSite *iface)
IOleClientSiteImpl *This = impl_from_IOleClientSite(iface); IOleClientSiteImpl *This = impl_from_IOleClientSite(iface);
ULONG ref = InterlockedDecrement(&This->ref); ULONG ref = InterlockedDecrement(&This->ref);
TRACE("(%p)->(%u)\n", This, ref); TRACE("(%p)->(%lu)\n", This, ref);
if (ref == 0) { if (ref == 0) {
if (This->child.reole) { if (This->child.reole) {
...@@ -1249,7 +1249,7 @@ IRichEditOle_fnGetClipboardData(IRichEditOle *iface, CHARRANGE *lpchrg, ...@@ -1249,7 +1249,7 @@ IRichEditOle_fnGetClipboardData(IRichEditOle *iface, CHARRANGE *lpchrg,
ME_Cursor start; ME_Cursor start;
int nChars; int nChars;
TRACE("(%p,%p,%d)\n", services, lpchrg, reco); TRACE("(%p,%p,%ld)\n", services, lpchrg, reco);
if(!lplpdataobj) if(!lplpdataobj)
return E_INVALIDARG; return E_INVALIDARG;
if(!lpchrg) if(!lpchrg)
...@@ -1282,7 +1282,7 @@ IRichEditOle_fnGetObject(IRichEditOle *iface, LONG iob, ...@@ -1282,7 +1282,7 @@ IRichEditOle_fnGetObject(IRichEditOle *iface, LONG iob,
struct re_object *reobj = NULL; struct re_object *reobj = NULL;
LONG count = 0; LONG count = 0;
TRACE("(%p)->(%x, %p, %x)\n", services, iob, lpreobject, dwFlags); TRACE("(%p)->(%lx, %p, %lx)\n", services, iob, lpreobject, dwFlags);
if (!lpreobject || !lpreobject->cbStruct) if (!lpreobject || !lpreobject->cbStruct)
return E_INVALIDARG; return E_INVALIDARG;
...@@ -1291,7 +1291,7 @@ IRichEditOle_fnGetObject(IRichEditOle *iface, LONG iob, ...@@ -1291,7 +1291,7 @@ IRichEditOle_fnGetObject(IRichEditOle *iface, LONG iob,
{ {
ME_Cursor cursor; ME_Cursor cursor;
TRACE("character offset: %d\n", lpreobject->cp); TRACE("character offset: %ld\n", lpreobject->cp);
cursor_from_char_ofs( services->editor, lpreobject->cp, &cursor ); cursor_from_char_ofs( services->editor, lpreobject->cp, &cursor );
if (!cursor.run->reobj) if (!cursor.run->reobj)
return E_INVALIDARG; return E_INVALIDARG;
...@@ -1463,7 +1463,7 @@ static ULONG WINAPI ITextRange_fnRelease(ITextRange *me) ...@@ -1463,7 +1463,7 @@ static ULONG WINAPI ITextRange_fnRelease(ITextRange *me)
ITextRangeImpl *This = impl_from_ITextRange(me); ITextRangeImpl *This = impl_from_ITextRange(me);
ULONG ref = InterlockedDecrement(&This->ref); ULONG ref = InterlockedDecrement(&This->ref);
TRACE ("%p ref=%u\n", This, ref); TRACE ("%p ref=%lu\n", This, ref);
if (ref == 0) if (ref == 0)
{ {
if (This->child.reole) if (This->child.reole)
...@@ -1490,7 +1490,7 @@ static HRESULT WINAPI ITextRange_fnGetTypeInfo(ITextRange *me, UINT iTInfo, LCID ...@@ -1490,7 +1490,7 @@ static HRESULT WINAPI ITextRange_fnGetTypeInfo(ITextRange *me, UINT iTInfo, LCID
ITextRangeImpl *This = impl_from_ITextRange(me); ITextRangeImpl *This = impl_from_ITextRange(me);
HRESULT hr; HRESULT hr;
TRACE("(%p)->(%u,%d,%p)\n", This, iTInfo, lcid, ppTInfo); TRACE("(%p)->(%u,%ld,%p)\n", This, iTInfo, lcid, ppTInfo);
hr = get_typeinfo(ITextRange_tid, ppTInfo); hr = get_typeinfo(ITextRange_tid, ppTInfo);
if (SUCCEEDED(hr)) if (SUCCEEDED(hr))
...@@ -1505,7 +1505,7 @@ static HRESULT WINAPI ITextRange_fnGetIDsOfNames(ITextRange *me, REFIID riid, LP ...@@ -1505,7 +1505,7 @@ static HRESULT WINAPI ITextRange_fnGetIDsOfNames(ITextRange *me, REFIID riid, LP
ITypeInfo *ti; ITypeInfo *ti;
HRESULT hr; HRESULT hr;
TRACE("(%p)->(%s, %p, %u, %d, %p)\n", This, debugstr_guid(riid), rgszNames, cNames, lcid, TRACE("(%p)->(%s, %p, %u, %ld, %p)\n", This, debugstr_guid(riid), rgszNames, cNames, lcid,
rgDispId); rgDispId);
hr = get_typeinfo(ITextRange_tid, &ti); hr = get_typeinfo(ITextRange_tid, &ti);
...@@ -1523,7 +1523,7 @@ static HRESULT WINAPI ITextRange_fnInvoke(ITextRange *me, DISPID dispIdMember, R ...@@ -1523,7 +1523,7 @@ static HRESULT WINAPI ITextRange_fnInvoke(ITextRange *me, DISPID dispIdMember, R
ITypeInfo *ti; ITypeInfo *ti;
HRESULT hr; HRESULT hr;
TRACE("(%p)->(%d, %s, %d, %u, %p, %p, %p, %p)\n", This, dispIdMember, debugstr_guid(riid), TRACE("(%p)->(%ld, %s, %ld, %u, %p, %p, %p, %p)\n", This, dispIdMember, debugstr_guid(riid),
lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr); lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
hr = get_typeinfo(ITextRange_tid, &ti); hr = get_typeinfo(ITextRange_tid, &ti);
...@@ -1647,7 +1647,7 @@ static HRESULT WINAPI ITextRange_fnSetChar(ITextRange *me, LONG ch) ...@@ -1647,7 +1647,7 @@ static HRESULT WINAPI ITextRange_fnSetChar(ITextRange *me, LONG ch)
{ {
ITextRangeImpl *This = impl_from_ITextRange(me); ITextRangeImpl *This = impl_from_ITextRange(me);
FIXME("(%p)->(%x): stub\n", This, ch); FIXME("(%p)->(%lx): stub\n", This, ch);
if (!This->child.reole) if (!This->child.reole)
return CO_E_RELEASED; return CO_E_RELEASED;
...@@ -1736,7 +1736,7 @@ static HRESULT WINAPI ITextRange_fnSetStart(ITextRange *me, LONG value) ...@@ -1736,7 +1736,7 @@ static HRESULT WINAPI ITextRange_fnSetStart(ITextRange *me, LONG value)
{ {
ITextRangeImpl *This = impl_from_ITextRange(me); ITextRangeImpl *This = impl_from_ITextRange(me);
TRACE("(%p)->(%d)\n", This, value); TRACE("(%p)->(%ld)\n", This, value);
if (!This->child.reole) if (!This->child.reole)
return CO_E_RELEASED; return CO_E_RELEASED;
...@@ -1781,7 +1781,7 @@ static HRESULT WINAPI ITextRange_fnSetEnd(ITextRange *me, LONG value) ...@@ -1781,7 +1781,7 @@ static HRESULT WINAPI ITextRange_fnSetEnd(ITextRange *me, LONG value)
{ {
ITextRangeImpl *This = impl_from_ITextRange(me); ITextRangeImpl *This = impl_from_ITextRange(me);
TRACE("(%p)->(%d)\n", This, value); TRACE("(%p)->(%ld)\n", This, value);
if (!This->child.reole) if (!This->child.reole)
return CO_E_RELEASED; return CO_E_RELEASED;
...@@ -1891,7 +1891,7 @@ static HRESULT WINAPI ITextRange_fnCollapse(ITextRange *me, LONG bStart) ...@@ -1891,7 +1891,7 @@ static HRESULT WINAPI ITextRange_fnCollapse(ITextRange *me, LONG bStart)
{ {
ITextRangeImpl *This = impl_from_ITextRange(me); ITextRangeImpl *This = impl_from_ITextRange(me);
TRACE("(%p)->(%d)\n", This, bStart); TRACE("(%p)->(%ld)\n", This, bStart);
if (!This->child.reole) if (!This->child.reole)
return CO_E_RELEASED; return CO_E_RELEASED;
...@@ -1903,7 +1903,7 @@ static HRESULT WINAPI ITextRange_fnExpand(ITextRange *me, LONG unit, LONG *delta ...@@ -1903,7 +1903,7 @@ static HRESULT WINAPI ITextRange_fnExpand(ITextRange *me, LONG unit, LONG *delta
{ {
ITextRangeImpl *This = impl_from_ITextRange(me); ITextRangeImpl *This = impl_from_ITextRange(me);
TRACE("(%p)->(%d %p)\n", This, unit, delta); TRACE("(%p)->(%ld %p)\n", This, unit, delta);
if (!This->child.reole) if (!This->child.reole)
return CO_E_RELEASED; return CO_E_RELEASED;
...@@ -1915,7 +1915,7 @@ static HRESULT WINAPI ITextRange_fnGetIndex(ITextRange *me, LONG unit, LONG *ind ...@@ -1915,7 +1915,7 @@ static HRESULT WINAPI ITextRange_fnGetIndex(ITextRange *me, LONG unit, LONG *ind
{ {
ITextRangeImpl *This = impl_from_ITextRange(me); ITextRangeImpl *This = impl_from_ITextRange(me);
FIXME("(%p)->(%d %p): stub\n", This, unit, index); FIXME("(%p)->(%ld %p): stub\n", This, unit, index);
if (!This->child.reole) if (!This->child.reole)
return CO_E_RELEASED; return CO_E_RELEASED;
...@@ -1928,7 +1928,7 @@ static HRESULT WINAPI ITextRange_fnSetIndex(ITextRange *me, LONG unit, LONG inde ...@@ -1928,7 +1928,7 @@ static HRESULT WINAPI ITextRange_fnSetIndex(ITextRange *me, LONG unit, LONG inde
{ {
ITextRangeImpl *This = impl_from_ITextRange(me); ITextRangeImpl *This = impl_from_ITextRange(me);
FIXME("(%p)->(%d %d %d): stub\n", This, unit, index, extend); FIXME("(%p)->(%ld %ld %ld): stub\n", This, unit, index, extend);
if (!This->child.reole) if (!This->child.reole)
return CO_E_RELEASED; return CO_E_RELEASED;
...@@ -1958,7 +1958,7 @@ static HRESULT WINAPI ITextRange_fnSetRange(ITextRange *me, LONG anchor, LONG ac ...@@ -1958,7 +1958,7 @@ static HRESULT WINAPI ITextRange_fnSetRange(ITextRange *me, LONG anchor, LONG ac
{ {
ITextRangeImpl *This = impl_from_ITextRange(me); ITextRangeImpl *This = impl_from_ITextRange(me);
TRACE("(%p)->(%d %d)\n", This, anchor, active); TRACE("(%p)->(%ld %ld)\n", This, anchor, active);
if (!This->child.reole) if (!This->child.reole)
return CO_E_RELEASED; return CO_E_RELEASED;
...@@ -2089,7 +2089,7 @@ static HRESULT textrange_startof(ITextRange *range, LONG unit, LONG extend, LONG ...@@ -2089,7 +2089,7 @@ static HRESULT textrange_startof(ITextRange *range, LONG unit, LONG extend, LONG
break; break;
} }
default: default:
FIXME("unit %d is not supported\n", unit); FIXME("unit %ld is not supported\n", unit);
return E_NOTIMPL; return E_NOTIMPL;
} }
return hr; return hr;
...@@ -2100,7 +2100,7 @@ static HRESULT WINAPI ITextRange_fnStartOf(ITextRange *me, LONG unit, LONG exten ...@@ -2100,7 +2100,7 @@ static HRESULT WINAPI ITextRange_fnStartOf(ITextRange *me, LONG unit, LONG exten
{ {
ITextRangeImpl *This = impl_from_ITextRange(me); ITextRangeImpl *This = impl_from_ITextRange(me);
TRACE("(%p)->(%d %d %p)\n", This, unit, extend, delta); TRACE("(%p)->(%ld %ld %p)\n", This, unit, extend, delta);
if (!This->child.reole) if (!This->child.reole)
return CO_E_RELEASED; return CO_E_RELEASED;
...@@ -2142,7 +2142,7 @@ static HRESULT textrange_endof(ITextRange *range, ME_TextEditor *editor, LONG un ...@@ -2142,7 +2142,7 @@ static HRESULT textrange_endof(ITextRange *range, ME_TextEditor *editor, LONG un
break; break;
} }
default: default:
FIXME("unit %d is not supported\n", unit); FIXME("unit %ld is not supported\n", unit);
return E_NOTIMPL; return E_NOTIMPL;
} }
return hr; return hr;
...@@ -2153,7 +2153,7 @@ static HRESULT WINAPI ITextRange_fnEndOf(ITextRange *me, LONG unit, LONG extend, ...@@ -2153,7 +2153,7 @@ static HRESULT WINAPI ITextRange_fnEndOf(ITextRange *me, LONG unit, LONG extend,
{ {
ITextRangeImpl *This = impl_from_ITextRange(me); ITextRangeImpl *This = impl_from_ITextRange(me);
TRACE("(%p)->(%d %d %p)\n", This, unit, extend, delta); TRACE("(%p)->(%ld %ld %p)\n", This, unit, extend, delta);
if (!This->child.reole) if (!This->child.reole)
return CO_E_RELEASED; return CO_E_RELEASED;
...@@ -2216,7 +2216,7 @@ static HRESULT textrange_move(ITextRange *range, ME_TextEditor *editor, LONG uni ...@@ -2216,7 +2216,7 @@ static HRESULT textrange_move(ITextRange *range, ME_TextEditor *editor, LONG uni
break; break;
} }
default: default:
FIXME("unit %d is not supported\n", unit); FIXME("unit %ld is not supported\n", unit);
return E_NOTIMPL; return E_NOTIMPL;
} }
if (moved == 0) if (moved == 0)
...@@ -2231,7 +2231,7 @@ static HRESULT WINAPI ITextRange_fnMove(ITextRange *me, LONG unit, LONG count, L ...@@ -2231,7 +2231,7 @@ static HRESULT WINAPI ITextRange_fnMove(ITextRange *me, LONG unit, LONG count, L
{ {
ITextRangeImpl *This = impl_from_ITextRange(me); ITextRangeImpl *This = impl_from_ITextRange(me);
TRACE("(%p)->(%d %d %p)\n", This, unit, count, delta); TRACE("(%p)->(%ld %ld %p)\n", This, unit, count, delta);
if (!This->child.reole) if (!This->child.reole)
return CO_E_RELEASED; return CO_E_RELEASED;
...@@ -2271,7 +2271,7 @@ static HRESULT textrange_movestart(ITextRange *range, ME_TextEditor *editor, LON ...@@ -2271,7 +2271,7 @@ static HRESULT textrange_movestart(ITextRange *range, ME_TextEditor *editor, LON
break; break;
} }
default: default:
FIXME("unit %d is not supported\n", unit); FIXME("unit %ld is not supported\n", unit);
return E_NOTIMPL; return E_NOTIMPL;
} }
if (new_start == old_start) if (new_start == old_start)
...@@ -2287,7 +2287,7 @@ static HRESULT WINAPI ITextRange_fnMoveStart(ITextRange *me, LONG unit, LONG cou ...@@ -2287,7 +2287,7 @@ static HRESULT WINAPI ITextRange_fnMoveStart(ITextRange *me, LONG unit, LONG cou
{ {
ITextRangeImpl *This = impl_from_ITextRange(me); ITextRangeImpl *This = impl_from_ITextRange(me);
TRACE("(%p)->(%d %d %p)\n", This, unit, count, delta); TRACE("(%p)->(%ld %ld %p)\n", This, unit, count, delta);
if (!This->child.reole) if (!This->child.reole)
return CO_E_RELEASED; return CO_E_RELEASED;
...@@ -2345,7 +2345,7 @@ static HRESULT textrange_moveend(ITextRange *range, ME_TextEditor *editor, LONG ...@@ -2345,7 +2345,7 @@ static HRESULT textrange_moveend(ITextRange *range, ME_TextEditor *editor, LONG
} }
break; break;
default: default:
FIXME("unit %d is not supported\n", unit); FIXME("unit %ld is not supported\n", unit);
return E_NOTIMPL; return E_NOTIMPL;
} }
if (new_end == old_end) if (new_end == old_end)
...@@ -2361,7 +2361,7 @@ static HRESULT WINAPI ITextRange_fnMoveEnd(ITextRange *me, LONG unit, LONG count ...@@ -2361,7 +2361,7 @@ static HRESULT WINAPI ITextRange_fnMoveEnd(ITextRange *me, LONG unit, LONG count
{ {
ITextRangeImpl *This = impl_from_ITextRange(me); ITextRangeImpl *This = impl_from_ITextRange(me);
TRACE("(%p)->(%d %d %p)\n", This, unit, count, delta); TRACE("(%p)->(%ld %ld %p)\n", This, unit, count, delta);
if (!This->child.reole) if (!This->child.reole)
return CO_E_RELEASED; return CO_E_RELEASED;
...@@ -2374,7 +2374,7 @@ static HRESULT WINAPI ITextRange_fnMoveWhile(ITextRange *me, VARIANT *charset, L ...@@ -2374,7 +2374,7 @@ static HRESULT WINAPI ITextRange_fnMoveWhile(ITextRange *me, VARIANT *charset, L
{ {
ITextRangeImpl *This = impl_from_ITextRange(me); ITextRangeImpl *This = impl_from_ITextRange(me);
FIXME("(%p)->(%s %d %p): stub\n", This, debugstr_variant(charset), count, delta); FIXME("(%p)->(%s %ld %p): stub\n", This, debugstr_variant(charset), count, delta);
if (!This->child.reole) if (!This->child.reole)
return CO_E_RELEASED; return CO_E_RELEASED;
...@@ -2387,7 +2387,7 @@ static HRESULT WINAPI ITextRange_fnMoveStartWhile(ITextRange *me, VARIANT *chars ...@@ -2387,7 +2387,7 @@ static HRESULT WINAPI ITextRange_fnMoveStartWhile(ITextRange *me, VARIANT *chars
{ {
ITextRangeImpl *This = impl_from_ITextRange(me); ITextRangeImpl *This = impl_from_ITextRange(me);
FIXME("(%p)->(%s %d %p): stub\n", This, debugstr_variant(charset), count, delta); FIXME("(%p)->(%s %ld %p): stub\n", This, debugstr_variant(charset), count, delta);
if (!This->child.reole) if (!This->child.reole)
return CO_E_RELEASED; return CO_E_RELEASED;
...@@ -2400,7 +2400,7 @@ static HRESULT WINAPI ITextRange_fnMoveEndWhile(ITextRange *me, VARIANT *charset ...@@ -2400,7 +2400,7 @@ static HRESULT WINAPI ITextRange_fnMoveEndWhile(ITextRange *me, VARIANT *charset
{ {
ITextRangeImpl *This = impl_from_ITextRange(me); ITextRangeImpl *This = impl_from_ITextRange(me);
FIXME("(%p)->(%s %d %p): stub\n", This, debugstr_variant(charset), count, delta); FIXME("(%p)->(%s %ld %p): stub\n", This, debugstr_variant(charset), count, delta);
if (!This->child.reole) if (!This->child.reole)
return CO_E_RELEASED; return CO_E_RELEASED;
...@@ -2413,7 +2413,7 @@ static HRESULT WINAPI ITextRange_fnMoveUntil(ITextRange *me, VARIANT *charset, L ...@@ -2413,7 +2413,7 @@ static HRESULT WINAPI ITextRange_fnMoveUntil(ITextRange *me, VARIANT *charset, L
{ {
ITextRangeImpl *This = impl_from_ITextRange(me); ITextRangeImpl *This = impl_from_ITextRange(me);
FIXME("(%p)->(%s %d %p): stub\n", This, debugstr_variant(charset), count, delta); FIXME("(%p)->(%s %ld %p): stub\n", This, debugstr_variant(charset), count, delta);
if (!This->child.reole) if (!This->child.reole)
return CO_E_RELEASED; return CO_E_RELEASED;
...@@ -2426,7 +2426,7 @@ static HRESULT WINAPI ITextRange_fnMoveStartUntil(ITextRange *me, VARIANT *chars ...@@ -2426,7 +2426,7 @@ static HRESULT WINAPI ITextRange_fnMoveStartUntil(ITextRange *me, VARIANT *chars
{ {
ITextRangeImpl *This = impl_from_ITextRange(me); ITextRangeImpl *This = impl_from_ITextRange(me);
FIXME("(%p)->(%s %d %p): stub\n", This, debugstr_variant(charset), count, delta); FIXME("(%p)->(%s %ld %p): stub\n", This, debugstr_variant(charset), count, delta);
if (!This->child.reole) if (!This->child.reole)
return CO_E_RELEASED; return CO_E_RELEASED;
...@@ -2439,7 +2439,7 @@ static HRESULT WINAPI ITextRange_fnMoveEndUntil(ITextRange *me, VARIANT *charset ...@@ -2439,7 +2439,7 @@ static HRESULT WINAPI ITextRange_fnMoveEndUntil(ITextRange *me, VARIANT *charset
{ {
ITextRangeImpl *This = impl_from_ITextRange(me); ITextRangeImpl *This = impl_from_ITextRange(me);
FIXME("(%p)->(%s %d %p): stub\n", This, debugstr_variant(charset), count, delta); FIXME("(%p)->(%s %ld %p): stub\n", This, debugstr_variant(charset), count, delta);
if (!This->child.reole) if (!This->child.reole)
return CO_E_RELEASED; return CO_E_RELEASED;
...@@ -2452,7 +2452,7 @@ static HRESULT WINAPI ITextRange_fnFindText(ITextRange *me, BSTR text, LONG coun ...@@ -2452,7 +2452,7 @@ static HRESULT WINAPI ITextRange_fnFindText(ITextRange *me, BSTR text, LONG coun
{ {
ITextRangeImpl *This = impl_from_ITextRange(me); ITextRangeImpl *This = impl_from_ITextRange(me);
FIXME("(%p)->(%s %d %x %p): stub\n", This, debugstr_w(text), count, flags, length); FIXME("(%p)->(%s %ld %lx %p): stub\n", This, debugstr_w(text), count, flags, length);
if (!This->child.reole) if (!This->child.reole)
return CO_E_RELEASED; return CO_E_RELEASED;
...@@ -2465,7 +2465,7 @@ static HRESULT WINAPI ITextRange_fnFindTextStart(ITextRange *me, BSTR text, LONG ...@@ -2465,7 +2465,7 @@ static HRESULT WINAPI ITextRange_fnFindTextStart(ITextRange *me, BSTR text, LONG
{ {
ITextRangeImpl *This = impl_from_ITextRange(me); ITextRangeImpl *This = impl_from_ITextRange(me);
FIXME("(%p)->(%s %d %x %p): stub\n", This, debugstr_w(text), count, flags, length); FIXME("(%p)->(%s %ld %lx %p): stub\n", This, debugstr_w(text), count, flags, length);
if (!This->child.reole) if (!This->child.reole)
return CO_E_RELEASED; return CO_E_RELEASED;
...@@ -2478,7 +2478,7 @@ static HRESULT WINAPI ITextRange_fnFindTextEnd(ITextRange *me, BSTR text, LONG c ...@@ -2478,7 +2478,7 @@ static HRESULT WINAPI ITextRange_fnFindTextEnd(ITextRange *me, BSTR text, LONG c
{ {
ITextRangeImpl *This = impl_from_ITextRange(me); ITextRangeImpl *This = impl_from_ITextRange(me);
FIXME("(%p)->(%s %d %x %p): stub\n", This, debugstr_w(text), count, flags, length); FIXME("(%p)->(%s %ld %lx %p): stub\n", This, debugstr_w(text), count, flags, length);
if (!This->child.reole) if (!This->child.reole)
return CO_E_RELEASED; return CO_E_RELEASED;
...@@ -2490,7 +2490,7 @@ static HRESULT WINAPI ITextRange_fnDelete(ITextRange *me, LONG unit, LONG count, ...@@ -2490,7 +2490,7 @@ static HRESULT WINAPI ITextRange_fnDelete(ITextRange *me, LONG unit, LONG count,
{ {
ITextRangeImpl *This = impl_from_ITextRange(me); ITextRangeImpl *This = impl_from_ITextRange(me);
FIXME("(%p)->(%d %d %p): stub\n", This, unit, count, delta); FIXME("(%p)->(%ld %ld %p): stub\n", This, unit, count, delta);
if (!This->child.reole) if (!This->child.reole)
return CO_E_RELEASED; return CO_E_RELEASED;
...@@ -2551,7 +2551,7 @@ static HRESULT WINAPI ITextRange_fnPaste(ITextRange *me, VARIANT *v, LONG format ...@@ -2551,7 +2551,7 @@ static HRESULT WINAPI ITextRange_fnPaste(ITextRange *me, VARIANT *v, LONG format
{ {
ITextRangeImpl *This = impl_from_ITextRange(me); ITextRangeImpl *This = impl_from_ITextRange(me);
FIXME("(%p)->(%s %x): stub\n", This, debugstr_variant(v), format); FIXME("(%p)->(%s %lx): stub\n", This, debugstr_variant(v), format);
if (!This->child.reole) if (!This->child.reole)
return CO_E_RELEASED; return CO_E_RELEASED;
...@@ -2563,7 +2563,7 @@ static HRESULT WINAPI ITextRange_fnCanPaste(ITextRange *me, VARIANT *v, LONG for ...@@ -2563,7 +2563,7 @@ static HRESULT WINAPI ITextRange_fnCanPaste(ITextRange *me, VARIANT *v, LONG for
{ {
ITextRangeImpl *This = impl_from_ITextRange(me); ITextRangeImpl *This = impl_from_ITextRange(me);
FIXME("(%p)->(%s %x %p): stub\n", This, debugstr_variant(v), format, ret); FIXME("(%p)->(%s %lx %p): stub\n", This, debugstr_variant(v), format, ret);
if (!This->child.reole) if (!This->child.reole)
return CO_E_RELEASED; return CO_E_RELEASED;
...@@ -2587,7 +2587,7 @@ static HRESULT WINAPI ITextRange_fnChangeCase(ITextRange *me, LONG type) ...@@ -2587,7 +2587,7 @@ static HRESULT WINAPI ITextRange_fnChangeCase(ITextRange *me, LONG type)
{ {
ITextRangeImpl *This = impl_from_ITextRange(me); ITextRangeImpl *This = impl_from_ITextRange(me);
FIXME("(%p)->(%d): stub\n", This, type); FIXME("(%p)->(%ld): stub\n", This, type);
if (!This->child.reole) if (!This->child.reole)
return CO_E_RELEASED; return CO_E_RELEASED;
...@@ -2599,7 +2599,7 @@ static HRESULT WINAPI ITextRange_fnGetPoint(ITextRange *me, LONG type, LONG *cx, ...@@ -2599,7 +2599,7 @@ static HRESULT WINAPI ITextRange_fnGetPoint(ITextRange *me, LONG type, LONG *cx,
{ {
ITextRangeImpl *This = impl_from_ITextRange(me); ITextRangeImpl *This = impl_from_ITextRange(me);
FIXME("(%p)->(%d %p %p): stub\n", This, type, cx, cy); FIXME("(%p)->(%ld %p %p): stub\n", This, type, cx, cy);
if (!This->child.reole) if (!This->child.reole)
return CO_E_RELEASED; return CO_E_RELEASED;
...@@ -2612,7 +2612,7 @@ static HRESULT WINAPI ITextRange_fnSetPoint(ITextRange *me, LONG x, LONG y, LONG ...@@ -2612,7 +2612,7 @@ static HRESULT WINAPI ITextRange_fnSetPoint(ITextRange *me, LONG x, LONG y, LONG
{ {
ITextRangeImpl *This = impl_from_ITextRange(me); ITextRangeImpl *This = impl_from_ITextRange(me);
FIXME("(%p)->(%d %d %d %d): stub\n", This, x, y, type, extend); FIXME("(%p)->(%ld %ld %ld %ld): stub\n", This, x, y, type, extend);
if (!This->child.reole) if (!This->child.reole)
return CO_E_RELEASED; return CO_E_RELEASED;
...@@ -2627,7 +2627,7 @@ static HRESULT WINAPI ITextRange_fnScrollIntoView(ITextRange *me, LONG value) ...@@ -2627,7 +2627,7 @@ static HRESULT WINAPI ITextRange_fnScrollIntoView(ITextRange *me, LONG value)
ME_Cursor cursor; ME_Cursor cursor;
int x, y, height; int x, y, height;
TRACE("(%p)->(%d)\n", This, value); TRACE("(%p)->(%ld)\n", This, value);
if (!This->child.reole) if (!This->child.reole)
return CO_E_RELEASED; return CO_E_RELEASED;
...@@ -2645,7 +2645,7 @@ static HRESULT WINAPI ITextRange_fnScrollIntoView(ITextRange *me, LONG value) ...@@ -2645,7 +2645,7 @@ static HRESULT WINAPI ITextRange_fnScrollIntoView(ITextRange *me, LONG value)
cursor_coords( editor, &cursor, &x, &y, &height ); cursor_coords( editor, &cursor, &x, &y, &height );
break; break;
default: default:
FIXME("bStart value %d not handled\n", value); FIXME("bStart value %ld not handled\n", value);
return E_NOTIMPL; return E_NOTIMPL;
} }
scroll_abs( editor, x, y, TRUE ); scroll_abs( editor, x, y, TRUE );
...@@ -2749,7 +2749,7 @@ static ULONG WINAPI TextFont_AddRef(ITextFont *iface) ...@@ -2749,7 +2749,7 @@ static ULONG WINAPI TextFont_AddRef(ITextFont *iface)
{ {
ITextFontImpl *This = impl_from_ITextFont(iface); ITextFontImpl *This = impl_from_ITextFont(iface);
ULONG ref = InterlockedIncrement(&This->ref); ULONG ref = InterlockedIncrement(&This->ref);
TRACE("(%p)->(%u)\n", This, ref); TRACE("(%p)->(%lu)\n", This, ref);
return ref; return ref;
} }
...@@ -2758,7 +2758,7 @@ static ULONG WINAPI TextFont_Release(ITextFont *iface) ...@@ -2758,7 +2758,7 @@ static ULONG WINAPI TextFont_Release(ITextFont *iface)
ITextFontImpl *This = impl_from_ITextFont(iface); ITextFontImpl *This = impl_from_ITextFont(iface);
ULONG ref = InterlockedDecrement(&This->ref); ULONG ref = InterlockedDecrement(&This->ref);
TRACE("(%p)->(%u)\n", This, ref); TRACE("(%p)->(%lu)\n", This, ref);
if (!ref) if (!ref)
{ {
...@@ -2785,7 +2785,7 @@ static HRESULT WINAPI TextFont_GetTypeInfo(ITextFont *iface, UINT iTInfo, LCID l ...@@ -2785,7 +2785,7 @@ static HRESULT WINAPI TextFont_GetTypeInfo(ITextFont *iface, UINT iTInfo, LCID l
ITextFontImpl *This = impl_from_ITextFont(iface); ITextFontImpl *This = impl_from_ITextFont(iface);
HRESULT hr; HRESULT hr;
TRACE("(%p)->(%u,%d,%p)\n", This, iTInfo, lcid, ppTInfo); TRACE("(%p)->(%u,%ld,%p)\n", This, iTInfo, lcid, ppTInfo);
hr = get_typeinfo(ITextFont_tid, ppTInfo); hr = get_typeinfo(ITextFont_tid, ppTInfo);
if (SUCCEEDED(hr)) if (SUCCEEDED(hr))
...@@ -2800,7 +2800,7 @@ static HRESULT WINAPI TextFont_GetIDsOfNames(ITextFont *iface, REFIID riid, ...@@ -2800,7 +2800,7 @@ static HRESULT WINAPI TextFont_GetIDsOfNames(ITextFont *iface, REFIID riid,
ITypeInfo *ti; ITypeInfo *ti;
HRESULT hr; HRESULT hr;
TRACE("(%p)->(%s, %p, %u, %d, %p)\n", This, debugstr_guid(riid), TRACE("(%p)->(%s, %p, %u, %ld, %p)\n", This, debugstr_guid(riid),
rgszNames, cNames, lcid, rgDispId); rgszNames, cNames, lcid, rgDispId);
hr = get_typeinfo(ITextFont_tid, &ti); hr = get_typeinfo(ITextFont_tid, &ti);
...@@ -2824,7 +2824,7 @@ static HRESULT WINAPI TextFont_Invoke( ...@@ -2824,7 +2824,7 @@ static HRESULT WINAPI TextFont_Invoke(
ITypeInfo *ti; ITypeInfo *ti;
HRESULT hr; HRESULT hr;
TRACE("(%p)->(%d, %s, %d, %u, %p, %p, %p, %p)\n", This, dispIdMember, debugstr_guid(riid), TRACE("(%p)->(%ld, %s, %ld, %u, %p, %p, %p, %p)\n", This, dispIdMember, debugstr_guid(riid),
lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr); lcid, wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
hr = get_typeinfo(ITextFont_tid, &ti); hr = get_typeinfo(ITextFont_tid, &ti);
...@@ -2974,7 +2974,7 @@ static HRESULT WINAPI TextFont_Reset(ITextFont *iface, LONG value) ...@@ -2974,7 +2974,7 @@ static HRESULT WINAPI TextFont_Reset(ITextFont *iface, LONG value)
{ {
ITextFontImpl *This = impl_from_ITextFont(iface); ITextFontImpl *This = impl_from_ITextFont(iface);
TRACE("(%p)->(%d)\n", This, value); TRACE("(%p)->(%ld)\n", This, value);
/* If font is attached to a range, released or not, we can't /* If font is attached to a range, released or not, we can't
reset to undefined */ reset to undefined */
...@@ -3004,7 +3004,7 @@ static HRESULT WINAPI TextFont_Reset(ITextFont *iface, LONG value) ...@@ -3004,7 +3004,7 @@ static HRESULT WINAPI TextFont_Reset(ITextFont *iface, LONG value)
case tomUseTwips: case tomUseTwips:
return E_INVALIDARG; return E_INVALIDARG;
default: default:
FIXME("reset mode %d not supported\n", value); FIXME("reset mode %ld not supported\n", value);
} }
return S_OK; return S_OK;
...@@ -3031,7 +3031,7 @@ static HRESULT WINAPI TextFont_Reset(ITextFont *iface, LONG value) ...@@ -3031,7 +3031,7 @@ static HRESULT WINAPI TextFont_Reset(ITextFont *iface, LONG value)
} }
} }
FIXME("reset mode %d not supported\n", value); FIXME("reset mode %ld not supported\n", value);
return E_NOTIMPL; return E_NOTIMPL;
} }
...@@ -3045,7 +3045,7 @@ static HRESULT WINAPI TextFont_GetStyle(ITextFont *iface, LONG *value) ...@@ -3045,7 +3045,7 @@ static HRESULT WINAPI TextFont_GetStyle(ITextFont *iface, LONG *value)
static HRESULT WINAPI TextFont_SetStyle(ITextFont *iface, LONG value) static HRESULT WINAPI TextFont_SetStyle(ITextFont *iface, LONG value)
{ {
ITextFontImpl *This = impl_from_ITextFont(iface); ITextFontImpl *This = impl_from_ITextFont(iface);
FIXME("(%p)->(%d): stub\n", This, value); FIXME("(%p)->(%ld): stub\n", This, value);
return E_NOTIMPL; return E_NOTIMPL;
} }
...@@ -3059,7 +3059,7 @@ static HRESULT WINAPI TextFont_GetAllCaps(ITextFont *iface, LONG *value) ...@@ -3059,7 +3059,7 @@ static HRESULT WINAPI TextFont_GetAllCaps(ITextFont *iface, LONG *value)
static HRESULT WINAPI TextFont_SetAllCaps(ITextFont *iface, LONG value) static HRESULT WINAPI TextFont_SetAllCaps(ITextFont *iface, LONG value)
{ {
ITextFontImpl *This = impl_from_ITextFont(iface); ITextFontImpl *This = impl_from_ITextFont(iface);
TRACE("(%p)->(%d)\n", This, value); TRACE("(%p)->(%ld)\n", This, value);
return set_textfont_propd(This, FONT_ALLCAPS, value); return set_textfont_propd(This, FONT_ALLCAPS, value);
} }
...@@ -3074,7 +3074,7 @@ static HRESULT WINAPI TextFont_SetAnimation(ITextFont *iface, LONG value) ...@@ -3074,7 +3074,7 @@ static HRESULT WINAPI TextFont_SetAnimation(ITextFont *iface, LONG value)
{ {
ITextFontImpl *This = impl_from_ITextFont(iface); ITextFontImpl *This = impl_from_ITextFont(iface);
TRACE("(%p)->(%d)\n", This, value); TRACE("(%p)->(%ld)\n", This, value);
if (value < tomNoAnimation || value > tomAnimationMax) if (value < tomNoAnimation || value > tomAnimationMax)
return E_INVALIDARG; return E_INVALIDARG;
...@@ -3092,7 +3092,7 @@ static HRESULT WINAPI TextFont_GetBackColor(ITextFont *iface, LONG *value) ...@@ -3092,7 +3092,7 @@ static HRESULT WINAPI TextFont_GetBackColor(ITextFont *iface, LONG *value)
static HRESULT WINAPI TextFont_SetBackColor(ITextFont *iface, LONG value) static HRESULT WINAPI TextFont_SetBackColor(ITextFont *iface, LONG value)
{ {
ITextFontImpl *This = impl_from_ITextFont(iface); ITextFontImpl *This = impl_from_ITextFont(iface);
TRACE("(%p)->(%d)\n", This, value); TRACE("(%p)->(%ld)\n", This, value);
return set_textfont_propl(This, FONT_BACKCOLOR, value); return set_textfont_propl(This, FONT_BACKCOLOR, value);
} }
...@@ -3106,7 +3106,7 @@ static HRESULT WINAPI TextFont_GetBold(ITextFont *iface, LONG *value) ...@@ -3106,7 +3106,7 @@ static HRESULT WINAPI TextFont_GetBold(ITextFont *iface, LONG *value)
static HRESULT WINAPI TextFont_SetBold(ITextFont *iface, LONG value) static HRESULT WINAPI TextFont_SetBold(ITextFont *iface, LONG value)
{ {
ITextFontImpl *This = impl_from_ITextFont(iface); ITextFontImpl *This = impl_from_ITextFont(iface);
TRACE("(%p)->(%d)\n", This, value); TRACE("(%p)->(%ld)\n", This, value);
return set_textfont_propd(This, FONT_BOLD, value); return set_textfont_propd(This, FONT_BOLD, value);
} }
...@@ -3120,7 +3120,7 @@ static HRESULT WINAPI TextFont_GetEmboss(ITextFont *iface, LONG *value) ...@@ -3120,7 +3120,7 @@ static HRESULT WINAPI TextFont_GetEmboss(ITextFont *iface, LONG *value)
static HRESULT WINAPI TextFont_SetEmboss(ITextFont *iface, LONG value) static HRESULT WINAPI TextFont_SetEmboss(ITextFont *iface, LONG value)
{ {
ITextFontImpl *This = impl_from_ITextFont(iface); ITextFontImpl *This = impl_from_ITextFont(iface);
TRACE("(%p)->(%d)\n", This, value); TRACE("(%p)->(%ld)\n", This, value);
return set_textfont_propd(This, FONT_EMBOSS, value); return set_textfont_propd(This, FONT_EMBOSS, value);
} }
...@@ -3134,7 +3134,7 @@ static HRESULT WINAPI TextFont_GetForeColor(ITextFont *iface, LONG *value) ...@@ -3134,7 +3134,7 @@ static HRESULT WINAPI TextFont_GetForeColor(ITextFont *iface, LONG *value)
static HRESULT WINAPI TextFont_SetForeColor(ITextFont *iface, LONG value) static HRESULT WINAPI TextFont_SetForeColor(ITextFont *iface, LONG value)
{ {
ITextFontImpl *This = impl_from_ITextFont(iface); ITextFontImpl *This = impl_from_ITextFont(iface);
TRACE("(%p)->(%d)\n", This, value); TRACE("(%p)->(%ld)\n", This, value);
return set_textfont_propl(This, FONT_FORECOLOR, value); return set_textfont_propl(This, FONT_FORECOLOR, value);
} }
...@@ -3148,7 +3148,7 @@ static HRESULT WINAPI TextFont_GetHidden(ITextFont *iface, LONG *value) ...@@ -3148,7 +3148,7 @@ static HRESULT WINAPI TextFont_GetHidden(ITextFont *iface, LONG *value)
static HRESULT WINAPI TextFont_SetHidden(ITextFont *iface, LONG value) static HRESULT WINAPI TextFont_SetHidden(ITextFont *iface, LONG value)
{ {
ITextFontImpl *This = impl_from_ITextFont(iface); ITextFontImpl *This = impl_from_ITextFont(iface);
TRACE("(%p)->(%d)\n", This, value); TRACE("(%p)->(%ld)\n", This, value);
return set_textfont_propd(This, FONT_HIDDEN, value); return set_textfont_propd(This, FONT_HIDDEN, value);
} }
...@@ -3162,7 +3162,7 @@ static HRESULT WINAPI TextFont_GetEngrave(ITextFont *iface, LONG *value) ...@@ -3162,7 +3162,7 @@ static HRESULT WINAPI TextFont_GetEngrave(ITextFont *iface, LONG *value)
static HRESULT WINAPI TextFont_SetEngrave(ITextFont *iface, LONG value) static HRESULT WINAPI TextFont_SetEngrave(ITextFont *iface, LONG value)
{ {
ITextFontImpl *This = impl_from_ITextFont(iface); ITextFontImpl *This = impl_from_ITextFont(iface);
TRACE("(%p)->(%d)\n", This, value); TRACE("(%p)->(%ld)\n", This, value);
return set_textfont_propd(This, FONT_ENGRAVE, value); return set_textfont_propd(This, FONT_ENGRAVE, value);
} }
...@@ -3176,7 +3176,7 @@ static HRESULT WINAPI TextFont_GetItalic(ITextFont *iface, LONG *value) ...@@ -3176,7 +3176,7 @@ static HRESULT WINAPI TextFont_GetItalic(ITextFont *iface, LONG *value)
static HRESULT WINAPI TextFont_SetItalic(ITextFont *iface, LONG value) static HRESULT WINAPI TextFont_SetItalic(ITextFont *iface, LONG value)
{ {
ITextFontImpl *This = impl_from_ITextFont(iface); ITextFontImpl *This = impl_from_ITextFont(iface);
TRACE("(%p)->(%d)\n", This, value); TRACE("(%p)->(%ld)\n", This, value);
return set_textfont_propd(This, FONT_ITALIC, value); return set_textfont_propd(This, FONT_ITALIC, value);
} }
...@@ -3204,7 +3204,7 @@ static HRESULT WINAPI TextFont_GetLanguageID(ITextFont *iface, LONG *value) ...@@ -3204,7 +3204,7 @@ static HRESULT WINAPI TextFont_GetLanguageID(ITextFont *iface, LONG *value)
static HRESULT WINAPI TextFont_SetLanguageID(ITextFont *iface, LONG value) static HRESULT WINAPI TextFont_SetLanguageID(ITextFont *iface, LONG value)
{ {
ITextFontImpl *This = impl_from_ITextFont(iface); ITextFontImpl *This = impl_from_ITextFont(iface);
TRACE("(%p)->(%d)\n", This, value); TRACE("(%p)->(%ld)\n", This, value);
return set_textfont_propl(This, FONT_LANGID, value); return set_textfont_propl(This, FONT_LANGID, value);
} }
...@@ -3251,7 +3251,7 @@ static HRESULT WINAPI TextFont_GetOutline(ITextFont *iface, LONG *value) ...@@ -3251,7 +3251,7 @@ static HRESULT WINAPI TextFont_GetOutline(ITextFont *iface, LONG *value)
static HRESULT WINAPI TextFont_SetOutline(ITextFont *iface, LONG value) static HRESULT WINAPI TextFont_SetOutline(ITextFont *iface, LONG value)
{ {
ITextFontImpl *This = impl_from_ITextFont(iface); ITextFontImpl *This = impl_from_ITextFont(iface);
TRACE("(%p)->(%d)\n", This, value); TRACE("(%p)->(%ld)\n", This, value);
return set_textfont_propd(This, FONT_OUTLINE, value); return set_textfont_propd(This, FONT_OUTLINE, value);
} }
...@@ -3279,7 +3279,7 @@ static HRESULT WINAPI TextFont_GetProtected(ITextFont *iface, LONG *value) ...@@ -3279,7 +3279,7 @@ static HRESULT WINAPI TextFont_GetProtected(ITextFont *iface, LONG *value)
static HRESULT WINAPI TextFont_SetProtected(ITextFont *iface, LONG value) static HRESULT WINAPI TextFont_SetProtected(ITextFont *iface, LONG value)
{ {
ITextFontImpl *This = impl_from_ITextFont(iface); ITextFontImpl *This = impl_from_ITextFont(iface);
TRACE("(%p)->(%d)\n", This, value); TRACE("(%p)->(%ld)\n", This, value);
return set_textfont_propd(This, FONT_PROTECTED, value); return set_textfont_propd(This, FONT_PROTECTED, value);
} }
...@@ -3293,7 +3293,7 @@ static HRESULT WINAPI TextFont_GetShadow(ITextFont *iface, LONG *value) ...@@ -3293,7 +3293,7 @@ static HRESULT WINAPI TextFont_GetShadow(ITextFont *iface, LONG *value)
static HRESULT WINAPI TextFont_SetShadow(ITextFont *iface, LONG value) static HRESULT WINAPI TextFont_SetShadow(ITextFont *iface, LONG value)
{ {
ITextFontImpl *This = impl_from_ITextFont(iface); ITextFontImpl *This = impl_from_ITextFont(iface);
TRACE("(%p)->(%d)\n", This, value); TRACE("(%p)->(%ld)\n", This, value);
return set_textfont_propd(This, FONT_SHADOW, value); return set_textfont_propd(This, FONT_SHADOW, value);
} }
...@@ -3321,7 +3321,7 @@ static HRESULT WINAPI TextFont_GetSmallCaps(ITextFont *iface, LONG *value) ...@@ -3321,7 +3321,7 @@ static HRESULT WINAPI TextFont_GetSmallCaps(ITextFont *iface, LONG *value)
static HRESULT WINAPI TextFont_SetSmallCaps(ITextFont *iface, LONG value) static HRESULT WINAPI TextFont_SetSmallCaps(ITextFont *iface, LONG value)
{ {
ITextFontImpl *This = impl_from_ITextFont(iface); ITextFontImpl *This = impl_from_ITextFont(iface);
TRACE("(%p)->(%d)\n", This, value); TRACE("(%p)->(%ld)\n", This, value);
return set_textfont_propd(This, FONT_SMALLCAPS, value); return set_textfont_propd(This, FONT_SMALLCAPS, value);
} }
...@@ -3349,7 +3349,7 @@ static HRESULT WINAPI TextFont_GetStrikeThrough(ITextFont *iface, LONG *value) ...@@ -3349,7 +3349,7 @@ static HRESULT WINAPI TextFont_GetStrikeThrough(ITextFont *iface, LONG *value)
static HRESULT WINAPI TextFont_SetStrikeThrough(ITextFont *iface, LONG value) static HRESULT WINAPI TextFont_SetStrikeThrough(ITextFont *iface, LONG value)
{ {
ITextFontImpl *This = impl_from_ITextFont(iface); ITextFontImpl *This = impl_from_ITextFont(iface);
TRACE("(%p)->(%d)\n", This, value); TRACE("(%p)->(%ld)\n", This, value);
return set_textfont_propd(This, FONT_STRIKETHROUGH, value); return set_textfont_propd(This, FONT_STRIKETHROUGH, value);
} }
...@@ -3363,7 +3363,7 @@ static HRESULT WINAPI TextFont_GetSubscript(ITextFont *iface, LONG *value) ...@@ -3363,7 +3363,7 @@ static HRESULT WINAPI TextFont_GetSubscript(ITextFont *iface, LONG *value)
static HRESULT WINAPI TextFont_SetSubscript(ITextFont *iface, LONG value) static HRESULT WINAPI TextFont_SetSubscript(ITextFont *iface, LONG value)
{ {
ITextFontImpl *This = impl_from_ITextFont(iface); ITextFontImpl *This = impl_from_ITextFont(iface);
TRACE("(%p)->(%d)\n", This, value); TRACE("(%p)->(%ld)\n", This, value);
return set_textfont_propd(This, FONT_SUBSCRIPT, value); return set_textfont_propd(This, FONT_SUBSCRIPT, value);
} }
...@@ -3377,7 +3377,7 @@ static HRESULT WINAPI TextFont_GetSuperscript(ITextFont *iface, LONG *value) ...@@ -3377,7 +3377,7 @@ static HRESULT WINAPI TextFont_GetSuperscript(ITextFont *iface, LONG *value)
static HRESULT WINAPI TextFont_SetSuperscript(ITextFont *iface, LONG value) static HRESULT WINAPI TextFont_SetSuperscript(ITextFont *iface, LONG value)
{ {
ITextFontImpl *This = impl_from_ITextFont(iface); ITextFontImpl *This = impl_from_ITextFont(iface);
TRACE("(%p)->(%d)\n", This, value); TRACE("(%p)->(%ld)\n", This, value);
return set_textfont_propd(This, FONT_SUPERSCRIPT, value); return set_textfont_propd(This, FONT_SUPERSCRIPT, value);
} }
...@@ -3391,7 +3391,7 @@ static HRESULT WINAPI TextFont_GetUnderline(ITextFont *iface, LONG *value) ...@@ -3391,7 +3391,7 @@ static HRESULT WINAPI TextFont_GetUnderline(ITextFont *iface, LONG *value)
static HRESULT WINAPI TextFont_SetUnderline(ITextFont *iface, LONG value) static HRESULT WINAPI TextFont_SetUnderline(ITextFont *iface, LONG value)
{ {
ITextFontImpl *This = impl_from_ITextFont(iface); ITextFontImpl *This = impl_from_ITextFont(iface);
TRACE("(%p)->(%d)\n", This, value); TRACE("(%p)->(%ld)\n", This, value);
return set_textfont_propd(This, FONT_UNDERLINE, value); return set_textfont_propd(This, FONT_UNDERLINE, value);
} }
...@@ -3405,7 +3405,7 @@ static HRESULT WINAPI TextFont_GetWeight(ITextFont *iface, LONG *value) ...@@ -3405,7 +3405,7 @@ static HRESULT WINAPI TextFont_GetWeight(ITextFont *iface, LONG *value)
static HRESULT WINAPI TextFont_SetWeight(ITextFont *iface, LONG value) static HRESULT WINAPI TextFont_SetWeight(ITextFont *iface, LONG value)
{ {
ITextFontImpl *This = impl_from_ITextFont(iface); ITextFontImpl *This = impl_from_ITextFont(iface);
TRACE("(%p)->(%d)\n", This, value); TRACE("(%p)->(%ld)\n", This, value);
return set_textfont_propl(This, FONT_WEIGHT, value); return set_textfont_propl(This, FONT_WEIGHT, value);
} }
...@@ -3532,7 +3532,7 @@ static ULONG WINAPI TextPara_AddRef(ITextPara *iface) ...@@ -3532,7 +3532,7 @@ static ULONG WINAPI TextPara_AddRef(ITextPara *iface)
{ {
ITextParaImpl *This = impl_from_ITextPara(iface); ITextParaImpl *This = impl_from_ITextPara(iface);
ULONG ref = InterlockedIncrement(&This->ref); ULONG ref = InterlockedIncrement(&This->ref);
TRACE("(%p)->(%u)\n", This, ref); TRACE("(%p)->(%lu)\n", This, ref);
return ref; return ref;
} }
...@@ -3541,7 +3541,7 @@ static ULONG WINAPI TextPara_Release(ITextPara *iface) ...@@ -3541,7 +3541,7 @@ static ULONG WINAPI TextPara_Release(ITextPara *iface)
ITextParaImpl *This = impl_from_ITextPara(iface); ITextParaImpl *This = impl_from_ITextPara(iface);
ULONG ref = InterlockedDecrement(&This->ref); ULONG ref = InterlockedDecrement(&This->ref);
TRACE("(%p)->(%u)\n", This, ref); TRACE("(%p)->(%lu)\n", This, ref);
if (!ref) if (!ref)
{ {
...@@ -3566,7 +3566,7 @@ static HRESULT WINAPI TextPara_GetTypeInfo(ITextPara *iface, UINT iTInfo, LCID l ...@@ -3566,7 +3566,7 @@ static HRESULT WINAPI TextPara_GetTypeInfo(ITextPara *iface, UINT iTInfo, LCID l
ITextParaImpl *This = impl_from_ITextPara(iface); ITextParaImpl *This = impl_from_ITextPara(iface);
HRESULT hr; HRESULT hr;
TRACE("(%p)->(%u,%d,%p)\n", This, iTInfo, lcid, ppTInfo); TRACE("(%p)->(%u,%ld,%p)\n", This, iTInfo, lcid, ppTInfo);
hr = get_typeinfo(ITextPara_tid, ppTInfo); hr = get_typeinfo(ITextPara_tid, ppTInfo);
if (SUCCEEDED(hr)) if (SUCCEEDED(hr))
...@@ -3581,7 +3581,7 @@ static HRESULT WINAPI TextPara_GetIDsOfNames(ITextPara *iface, REFIID riid, ...@@ -3581,7 +3581,7 @@ static HRESULT WINAPI TextPara_GetIDsOfNames(ITextPara *iface, REFIID riid,
ITypeInfo *ti; ITypeInfo *ti;
HRESULT hr; HRESULT hr;
TRACE("(%p)->(%s, %p, %u, %d, %p)\n", This, debugstr_guid(riid), rgszNames, TRACE("(%p)->(%s, %p, %u, %ld, %p)\n", This, debugstr_guid(riid), rgszNames,
cNames, lcid, rgDispId); cNames, lcid, rgDispId);
hr = get_typeinfo(ITextPara_tid, &ti); hr = get_typeinfo(ITextPara_tid, &ti);
...@@ -3605,7 +3605,7 @@ static HRESULT WINAPI TextPara_Invoke( ...@@ -3605,7 +3605,7 @@ static HRESULT WINAPI TextPara_Invoke(
ITypeInfo *ti; ITypeInfo *ti;
HRESULT hr; HRESULT hr;
TRACE("(%p)->(%d, %s, %d, %u, %p, %p, %p, %p)\n", This, dispIdMember, TRACE("(%p)->(%ld, %s, %ld, %u, %p, %p, %p, %p)\n", This, dispIdMember,
debugstr_guid(riid), lcid, wFlags, pDispParams, pVarResult, debugstr_guid(riid), lcid, wFlags, pDispParams, pVarResult,
pExcepInfo, puArgErr); pExcepInfo, puArgErr);
...@@ -3646,7 +3646,7 @@ static HRESULT WINAPI TextPara_IsEqual(ITextPara *iface, ITextPara *para, LONG * ...@@ -3646,7 +3646,7 @@ static HRESULT WINAPI TextPara_IsEqual(ITextPara *iface, ITextPara *para, LONG *
static HRESULT WINAPI TextPara_Reset(ITextPara *iface, LONG value) static HRESULT WINAPI TextPara_Reset(ITextPara *iface, LONG value)
{ {
ITextParaImpl *This = impl_from_ITextPara(iface); ITextParaImpl *This = impl_from_ITextPara(iface);
FIXME("(%p)->(%d)\n", This, value); FIXME("(%p)->(%ld)\n", This, value);
return E_NOTIMPL; return E_NOTIMPL;
} }
...@@ -3660,7 +3660,7 @@ static HRESULT WINAPI TextPara_GetStyle(ITextPara *iface, LONG *value) ...@@ -3660,7 +3660,7 @@ static HRESULT WINAPI TextPara_GetStyle(ITextPara *iface, LONG *value)
static HRESULT WINAPI TextPara_SetStyle(ITextPara *iface, LONG value) static HRESULT WINAPI TextPara_SetStyle(ITextPara *iface, LONG value)
{ {
ITextParaImpl *This = impl_from_ITextPara(iface); ITextParaImpl *This = impl_from_ITextPara(iface);
FIXME("(%p)->(%d)\n", This, value); FIXME("(%p)->(%ld)\n", This, value);
return E_NOTIMPL; return E_NOTIMPL;
} }
...@@ -3674,7 +3674,7 @@ static HRESULT WINAPI TextPara_GetAlignment(ITextPara *iface, LONG *value) ...@@ -3674,7 +3674,7 @@ static HRESULT WINAPI TextPara_GetAlignment(ITextPara *iface, LONG *value)
static HRESULT WINAPI TextPara_SetAlignment(ITextPara *iface, LONG value) static HRESULT WINAPI TextPara_SetAlignment(ITextPara *iface, LONG value)
{ {
ITextParaImpl *This = impl_from_ITextPara(iface); ITextParaImpl *This = impl_from_ITextPara(iface);
FIXME("(%p)->(%d)\n", This, value); FIXME("(%p)->(%ld)\n", This, value);
return E_NOTIMPL; return E_NOTIMPL;
} }
...@@ -3688,7 +3688,7 @@ static HRESULT WINAPI TextPara_GetHyphenation(ITextPara *iface, LONG *value) ...@@ -3688,7 +3688,7 @@ static HRESULT WINAPI TextPara_GetHyphenation(ITextPara *iface, LONG *value)
static HRESULT WINAPI TextPara_SetHyphenation(ITextPara *iface, LONG value) static HRESULT WINAPI TextPara_SetHyphenation(ITextPara *iface, LONG value)
{ {
ITextParaImpl *This = impl_from_ITextPara(iface); ITextParaImpl *This = impl_from_ITextPara(iface);
FIXME("(%p)->(%d)\n", This, value); FIXME("(%p)->(%ld)\n", This, value);
return E_NOTIMPL; return E_NOTIMPL;
} }
...@@ -3709,7 +3709,7 @@ static HRESULT WINAPI TextPara_GetKeepTogether(ITextPara *iface, LONG *value) ...@@ -3709,7 +3709,7 @@ static HRESULT WINAPI TextPara_GetKeepTogether(ITextPara *iface, LONG *value)
static HRESULT WINAPI TextPara_SetKeepTogether(ITextPara *iface, LONG value) static HRESULT WINAPI TextPara_SetKeepTogether(ITextPara *iface, LONG value)
{ {
ITextParaImpl *This = impl_from_ITextPara(iface); ITextParaImpl *This = impl_from_ITextPara(iface);
FIXME("(%p)->(%d)\n", This, value); FIXME("(%p)->(%ld)\n", This, value);
return E_NOTIMPL; return E_NOTIMPL;
} }
...@@ -3723,7 +3723,7 @@ static HRESULT WINAPI TextPara_GetKeepWithNext(ITextPara *iface, LONG *value) ...@@ -3723,7 +3723,7 @@ static HRESULT WINAPI TextPara_GetKeepWithNext(ITextPara *iface, LONG *value)
static HRESULT WINAPI TextPara_SetKeepWithNext(ITextPara *iface, LONG value) static HRESULT WINAPI TextPara_SetKeepWithNext(ITextPara *iface, LONG value)
{ {
ITextParaImpl *This = impl_from_ITextPara(iface); ITextParaImpl *This = impl_from_ITextPara(iface);
FIXME("(%p)->(%d)\n", This, value); FIXME("(%p)->(%ld)\n", This, value);
return E_NOTIMPL; return E_NOTIMPL;
} }
...@@ -3758,7 +3758,7 @@ static HRESULT WINAPI TextPara_GetListAlignment(ITextPara *iface, LONG *value) ...@@ -3758,7 +3758,7 @@ static HRESULT WINAPI TextPara_GetListAlignment(ITextPara *iface, LONG *value)
static HRESULT WINAPI TextPara_SetListAlignment(ITextPara *iface, LONG value) static HRESULT WINAPI TextPara_SetListAlignment(ITextPara *iface, LONG value)
{ {
ITextParaImpl *This = impl_from_ITextPara(iface); ITextParaImpl *This = impl_from_ITextPara(iface);
FIXME("(%p)->(%d)\n", This, value); FIXME("(%p)->(%ld)\n", This, value);
return E_NOTIMPL; return E_NOTIMPL;
} }
...@@ -3772,7 +3772,7 @@ static HRESULT WINAPI TextPara_GetListLevelIndex(ITextPara *iface, LONG *value) ...@@ -3772,7 +3772,7 @@ static HRESULT WINAPI TextPara_GetListLevelIndex(ITextPara *iface, LONG *value)
static HRESULT WINAPI TextPara_SetListLevelIndex(ITextPara *iface, LONG value) static HRESULT WINAPI TextPara_SetListLevelIndex(ITextPara *iface, LONG value)
{ {
ITextParaImpl *This = impl_from_ITextPara(iface); ITextParaImpl *This = impl_from_ITextPara(iface);
FIXME("(%p)->(%d)\n", This, value); FIXME("(%p)->(%ld)\n", This, value);
return E_NOTIMPL; return E_NOTIMPL;
} }
...@@ -3786,7 +3786,7 @@ static HRESULT WINAPI TextPara_GetListStart(ITextPara *iface, LONG *value) ...@@ -3786,7 +3786,7 @@ static HRESULT WINAPI TextPara_GetListStart(ITextPara *iface, LONG *value)
static HRESULT WINAPI TextPara_SetListStart(ITextPara *iface, LONG value) static HRESULT WINAPI TextPara_SetListStart(ITextPara *iface, LONG value)
{ {
ITextParaImpl *This = impl_from_ITextPara(iface); ITextParaImpl *This = impl_from_ITextPara(iface);
FIXME("(%p)->(%d)\n", This, value); FIXME("(%p)->(%ld)\n", This, value);
return E_NOTIMPL; return E_NOTIMPL;
} }
...@@ -3814,7 +3814,7 @@ static HRESULT WINAPI TextPara_GetListType(ITextPara *iface, LONG *value) ...@@ -3814,7 +3814,7 @@ static HRESULT WINAPI TextPara_GetListType(ITextPara *iface, LONG *value)
static HRESULT WINAPI TextPara_SetListType(ITextPara *iface, LONG value) static HRESULT WINAPI TextPara_SetListType(ITextPara *iface, LONG value)
{ {
ITextParaImpl *This = impl_from_ITextPara(iface); ITextParaImpl *This = impl_from_ITextPara(iface);
FIXME("(%p)->(%d)\n", This, value); FIXME("(%p)->(%ld)\n", This, value);
return E_NOTIMPL; return E_NOTIMPL;
} }
...@@ -3828,7 +3828,7 @@ static HRESULT WINAPI TextPara_GetNoLineNumber(ITextPara *iface, LONG *value) ...@@ -3828,7 +3828,7 @@ static HRESULT WINAPI TextPara_GetNoLineNumber(ITextPara *iface, LONG *value)
static HRESULT WINAPI TextPara_SetNoLineNumber(ITextPara *iface, LONG value) static HRESULT WINAPI TextPara_SetNoLineNumber(ITextPara *iface, LONG value)
{ {
ITextParaImpl *This = impl_from_ITextPara(iface); ITextParaImpl *This = impl_from_ITextPara(iface);
FIXME("(%p)->(%d)\n", This, value); FIXME("(%p)->(%ld)\n", This, value);
return E_NOTIMPL; return E_NOTIMPL;
} }
...@@ -3842,7 +3842,7 @@ static HRESULT WINAPI TextPara_GetPageBreakBefore(ITextPara *iface, LONG *value) ...@@ -3842,7 +3842,7 @@ static HRESULT WINAPI TextPara_GetPageBreakBefore(ITextPara *iface, LONG *value)
static HRESULT WINAPI TextPara_SetPageBreakBefore(ITextPara *iface, LONG value) static HRESULT WINAPI TextPara_SetPageBreakBefore(ITextPara *iface, LONG value)
{ {
ITextParaImpl *This = impl_from_ITextPara(iface); ITextParaImpl *This = impl_from_ITextPara(iface);
FIXME("(%p)->(%d)\n", This, value); FIXME("(%p)->(%ld)\n", This, value);
return E_NOTIMPL; return E_NOTIMPL;
} }
...@@ -3870,7 +3870,7 @@ static HRESULT WINAPI TextPara_SetIndents(ITextPara *iface, FLOAT StartIndent, F ...@@ -3870,7 +3870,7 @@ static HRESULT WINAPI TextPara_SetIndents(ITextPara *iface, FLOAT StartIndent, F
static HRESULT WINAPI TextPara_SetLineSpacing(ITextPara *iface, LONG LineSpacingRule, FLOAT LineSpacing) static HRESULT WINAPI TextPara_SetLineSpacing(ITextPara *iface, LONG LineSpacingRule, FLOAT LineSpacing)
{ {
ITextParaImpl *This = impl_from_ITextPara(iface); ITextParaImpl *This = impl_from_ITextPara(iface);
FIXME("(%p)->(%d %.2f)\n", This, LineSpacingRule, LineSpacing); FIXME("(%p)->(%ld %.2f)\n", This, LineSpacingRule, LineSpacing);
return E_NOTIMPL; return E_NOTIMPL;
} }
...@@ -3912,7 +3912,7 @@ static HRESULT WINAPI TextPara_GetWidowControl(ITextPara *iface, LONG *value) ...@@ -3912,7 +3912,7 @@ static HRESULT WINAPI TextPara_GetWidowControl(ITextPara *iface, LONG *value)
static HRESULT WINAPI TextPara_SetWidowControl(ITextPara *iface, LONG value) static HRESULT WINAPI TextPara_SetWidowControl(ITextPara *iface, LONG value)
{ {
ITextParaImpl *This = impl_from_ITextPara(iface); ITextParaImpl *This = impl_from_ITextPara(iface);
FIXME("(%p)->(%d)\n", This, value); FIXME("(%p)->(%ld)\n", This, value);
return E_NOTIMPL; return E_NOTIMPL;
} }
...@@ -3926,7 +3926,7 @@ static HRESULT WINAPI TextPara_GetTabCount(ITextPara *iface, LONG *value) ...@@ -3926,7 +3926,7 @@ static HRESULT WINAPI TextPara_GetTabCount(ITextPara *iface, LONG *value)
static HRESULT WINAPI TextPara_AddTab(ITextPara *iface, FLOAT tbPos, LONG tbAlign, LONG tbLeader) static HRESULT WINAPI TextPara_AddTab(ITextPara *iface, FLOAT tbPos, LONG tbAlign, LONG tbLeader)
{ {
ITextParaImpl *This = impl_from_ITextPara(iface); ITextParaImpl *This = impl_from_ITextPara(iface);
FIXME("(%p)->(%.2f %d %d)\n", This, tbPos, tbAlign, tbLeader); FIXME("(%p)->(%.2f %ld %ld)\n", This, tbPos, tbAlign, tbLeader);
return E_NOTIMPL; return E_NOTIMPL;
} }
...@@ -3947,7 +3947,7 @@ static HRESULT WINAPI TextPara_DeleteTab(ITextPara *iface, FLOAT pos) ...@@ -3947,7 +3947,7 @@ static HRESULT WINAPI TextPara_DeleteTab(ITextPara *iface, FLOAT pos)
static HRESULT WINAPI TextPara_GetTab(ITextPara *iface, LONG iTab, FLOAT *ptbPos, LONG *ptbAlign, LONG *ptbLeader) static HRESULT WINAPI TextPara_GetTab(ITextPara *iface, LONG iTab, FLOAT *ptbPos, LONG *ptbAlign, LONG *ptbLeader)
{ {
ITextParaImpl *This = impl_from_ITextPara(iface); ITextParaImpl *This = impl_from_ITextPara(iface);
FIXME("(%p)->(%d %p %p %p)\n", This, iTab, ptbPos, ptbAlign, ptbLeader); FIXME("(%p)->(%ld %p %p %p)\n", This, iTab, ptbPos, ptbAlign, ptbLeader);
return E_NOTIMPL; return E_NOTIMPL;
} }
...@@ -4062,7 +4062,7 @@ static HRESULT WINAPI ITextDocument2Old_fnGetTypeInfo(ITextDocument2Old *iface, ...@@ -4062,7 +4062,7 @@ static HRESULT WINAPI ITextDocument2Old_fnGetTypeInfo(ITextDocument2Old *iface,
struct text_services *services = impl_from_ITextDocument2Old(iface); struct text_services *services = impl_from_ITextDocument2Old(iface);
HRESULT hr; HRESULT hr;
TRACE("(%p)->(%u,%d,%p)\n", services, iTInfo, lcid, ppTInfo); TRACE("(%p)->(%u,%ld,%p)\n", services, iTInfo, lcid, ppTInfo);
hr = get_typeinfo(ITextDocument_tid, ppTInfo); hr = get_typeinfo(ITextDocument_tid, ppTInfo);
if (SUCCEEDED(hr)) if (SUCCEEDED(hr))
...@@ -4078,7 +4078,7 @@ static HRESULT WINAPI ITextDocument2Old_fnGetIDsOfNames(ITextDocument2Old *iface ...@@ -4078,7 +4078,7 @@ static HRESULT WINAPI ITextDocument2Old_fnGetIDsOfNames(ITextDocument2Old *iface
ITypeInfo *ti; ITypeInfo *ti;
HRESULT hr; HRESULT hr;
TRACE("(%p)->(%s, %p, %u, %d, %p)\n", services, debugstr_guid(riid), TRACE("(%p)->(%s, %p, %u, %ld, %p)\n", services, debugstr_guid(riid),
rgszNames, cNames, lcid, rgDispId); rgszNames, cNames, lcid, rgDispId);
hr = get_typeinfo(ITextDocument_tid, &ti); hr = get_typeinfo(ITextDocument_tid, &ti);
...@@ -4096,7 +4096,7 @@ static HRESULT WINAPI ITextDocument2Old_fnInvoke(ITextDocument2Old *iface, DISPI ...@@ -4096,7 +4096,7 @@ static HRESULT WINAPI ITextDocument2Old_fnInvoke(ITextDocument2Old *iface, DISPI
ITypeInfo *ti; ITypeInfo *ti;
HRESULT hr; HRESULT hr;
TRACE("(%p)->(%d, %s, %d, %u, %p, %p, %p, %p)\n", services, dispIdMember, TRACE("(%p)->(%ld, %s, %ld, %u, %p, %p, %p, %p)\n", services, dispIdMember,
debugstr_guid(riid), lcid, wFlags, pDispParams, pVarResult, debugstr_guid(riid), lcid, wFlags, pDispParams, pVarResult,
pExcepInfo, puArgErr); pExcepInfo, puArgErr);
...@@ -4266,7 +4266,7 @@ static HRESULT WINAPI ITextDocument2Old_fnRange(ITextDocument2Old *iface, LONG c ...@@ -4266,7 +4266,7 @@ static HRESULT WINAPI ITextDocument2Old_fnRange(ITextDocument2Old *iface, LONG c
{ {
struct text_services *services = impl_from_ITextDocument2Old(iface); struct text_services *services = impl_from_ITextDocument2Old(iface);
TRACE("%p %p %d %d\n", services, ppRange, cp1, cp2); TRACE("%p %p %ld %ld\n", services, ppRange, cp1, cp2);
if (!ppRange) if (!ppRange)
return E_INVALIDARG; return E_INVALIDARG;
...@@ -4296,7 +4296,7 @@ static HRESULT WINAPI ITextDocument2Old_fnSetEffectColor(ITextDocument2Old *ifac ...@@ -4296,7 +4296,7 @@ static HRESULT WINAPI ITextDocument2Old_fnSetEffectColor(ITextDocument2Old *ifac
{ {
struct text_services *services = impl_from_ITextDocument2Old(iface); struct text_services *services = impl_from_ITextDocument2Old(iface);
FIXME("(%p)->(%d, 0x%x): stub\n", services, index, cr); FIXME("(%p)->(%ld, 0x%lx): stub\n", services, index, cr);
return E_NOTIMPL; return E_NOTIMPL;
} }
...@@ -4305,7 +4305,7 @@ static HRESULT WINAPI ITextDocument2Old_fnGetEffectColor(ITextDocument2Old *ifac ...@@ -4305,7 +4305,7 @@ static HRESULT WINAPI ITextDocument2Old_fnGetEffectColor(ITextDocument2Old *ifac
{ {
struct text_services *services = impl_from_ITextDocument2Old(iface); struct text_services *services = impl_from_ITextDocument2Old(iface);
FIXME("(%p)->(%d, %p): stub\n", services, index, cr); FIXME("(%p)->(%ld, %p): stub\n", services, index, cr);
return E_NOTIMPL; return E_NOTIMPL;
} }
...@@ -4323,7 +4323,7 @@ static HRESULT WINAPI ITextDocument2Old_fnSetCaretType(ITextDocument2Old *iface, ...@@ -4323,7 +4323,7 @@ static HRESULT WINAPI ITextDocument2Old_fnSetCaretType(ITextDocument2Old *iface,
{ {
struct text_services *services = impl_from_ITextDocument2Old(iface); struct text_services *services = impl_from_ITextDocument2Old(iface);
FIXME("(%p)->(%d): stub\n", services, type); FIXME("(%p)->(%ld): stub\n", services, type);
return E_NOTIMPL; return E_NOTIMPL;
} }
...@@ -4341,7 +4341,7 @@ static HRESULT WINAPI ITextDocument2Old_fnReleaseImmContext(ITextDocument2Old *i ...@@ -4341,7 +4341,7 @@ static HRESULT WINAPI ITextDocument2Old_fnReleaseImmContext(ITextDocument2Old *i
{ {
struct text_services *services = impl_from_ITextDocument2Old(iface); struct text_services *services = impl_from_ITextDocument2Old(iface);
FIXME("(%p)->(%d): stub\n", services, context); FIXME("(%p)->(%ld): stub\n", services, context);
return E_NOTIMPL; return E_NOTIMPL;
} }
...@@ -4352,7 +4352,7 @@ static HRESULT WINAPI ITextDocument2Old_fnGetPreferredFont(ITextDocument2Old *if ...@@ -4352,7 +4352,7 @@ static HRESULT WINAPI ITextDocument2Old_fnGetPreferredFont(ITextDocument2Old *if
{ {
struct text_services *services = impl_from_ITextDocument2Old(iface); struct text_services *services = impl_from_ITextDocument2Old(iface);
FIXME("(%p)->(%d, %d, %d, %d, %d, %p, %p, %p): stub\n", services, cp, charrep, options, current_charrep, FIXME("(%p)->(%ld, %ld, %ld, %ld, %ld, %p, %p, %p): stub\n", services, cp, charrep, options, current_charrep,
current_fontsize, bstr, pitch_family, new_fontsize); current_fontsize, bstr, pitch_family, new_fontsize);
return E_NOTIMPL; return E_NOTIMPL;
...@@ -4371,7 +4371,7 @@ static HRESULT WINAPI ITextDocument2Old_fnSetNotificationMode(ITextDocument2Old ...@@ -4371,7 +4371,7 @@ static HRESULT WINAPI ITextDocument2Old_fnSetNotificationMode(ITextDocument2Old
{ {
struct text_services *services = impl_from_ITextDocument2Old(iface); struct text_services *services = impl_from_ITextDocument2Old(iface);
FIXME("(%p)->(0x%x): stub\n", services, mode); FIXME("(%p)->(0x%lx): stub\n", services, mode);
return E_NOTIMPL; return E_NOTIMPL;
} }
...@@ -4381,7 +4381,7 @@ static HRESULT WINAPI ITextDocument2Old_fnGetClientRect(ITextDocument2Old *iface ...@@ -4381,7 +4381,7 @@ static HRESULT WINAPI ITextDocument2Old_fnGetClientRect(ITextDocument2Old *iface
{ {
struct text_services *services = impl_from_ITextDocument2Old(iface); struct text_services *services = impl_from_ITextDocument2Old(iface);
FIXME("(%p)->(%d, %p, %p, %p, %p): stub\n", services, type, left, top, right, bottom); FIXME("(%p)->(%ld, %p, %p, %p, %p): stub\n", services, type, left, top, right, bottom);
return E_NOTIMPL; return E_NOTIMPL;
} }
...@@ -4426,7 +4426,7 @@ static HRESULT WINAPI ITextDocument2Old_fnCheckTextLimit(ITextDocument2Old *ifac ...@@ -4426,7 +4426,7 @@ static HRESULT WINAPI ITextDocument2Old_fnCheckTextLimit(ITextDocument2Old *ifac
{ {
struct text_services *services = impl_from_ITextDocument2Old(iface); struct text_services *services = impl_from_ITextDocument2Old(iface);
FIXME("(%p)->(%d, %p): stub\n", services, cch, exceed); FIXME("(%p)->(%ld, %p): stub\n", services, cch, exceed);
return E_NOTIMPL; return E_NOTIMPL;
} }
...@@ -4435,7 +4435,7 @@ static HRESULT WINAPI ITextDocument2Old_fnIMEInProgress(ITextDocument2Old *iface ...@@ -4435,7 +4435,7 @@ static HRESULT WINAPI ITextDocument2Old_fnIMEInProgress(ITextDocument2Old *iface
{ {
struct text_services *services = impl_from_ITextDocument2Old(iface); struct text_services *services = impl_from_ITextDocument2Old(iface);
FIXME("(%p)->(0x%x): stub\n", services, mode); FIXME("(%p)->(0x%lx): stub\n", services, mode);
return E_NOTIMPL; return E_NOTIMPL;
} }
...@@ -4453,7 +4453,7 @@ static HRESULT WINAPI ITextDocument2Old_fnUpdate(ITextDocument2Old *iface, LONG ...@@ -4453,7 +4453,7 @@ static HRESULT WINAPI ITextDocument2Old_fnUpdate(ITextDocument2Old *iface, LONG
{ {
struct text_services *services = impl_from_ITextDocument2Old(iface); struct text_services *services = impl_from_ITextDocument2Old(iface);
FIXME("(%p)->(0x%x): stub\n", services, mode); FIXME("(%p)->(0x%lx): stub\n", services, mode);
return E_NOTIMPL; return E_NOTIMPL;
} }
...@@ -4462,7 +4462,7 @@ static HRESULT WINAPI ITextDocument2Old_fnNotify(ITextDocument2Old *iface, LONG ...@@ -4462,7 +4462,7 @@ static HRESULT WINAPI ITextDocument2Old_fnNotify(ITextDocument2Old *iface, LONG
{ {
struct text_services *services = impl_from_ITextDocument2Old(iface); struct text_services *services = impl_from_ITextDocument2Old(iface);
FIXME("(%p)->(%d): stub\n", services, notify); FIXME("(%p)->(%ld): stub\n", services, notify);
return E_NOTIMPL; return E_NOTIMPL;
} }
...@@ -4574,7 +4574,7 @@ static HRESULT WINAPI ITextSelection_fnGetTypeInfo(ITextSelection *me, UINT iTIn ...@@ -4574,7 +4574,7 @@ static HRESULT WINAPI ITextSelection_fnGetTypeInfo(ITextSelection *me, UINT iTIn
struct text_selection *This = impl_from_ITextSelection(me); struct text_selection *This = impl_from_ITextSelection(me);
HRESULT hr; HRESULT hr;
TRACE("(%p)->(%u,%d,%p)\n", This, iTInfo, lcid, ppTInfo); TRACE("(%p)->(%u,%ld,%p)\n", This, iTInfo, lcid, ppTInfo);
hr = get_typeinfo(ITextSelection_tid, ppTInfo); hr = get_typeinfo(ITextSelection_tid, ppTInfo);
if (SUCCEEDED(hr)) if (SUCCEEDED(hr))
...@@ -4589,7 +4589,7 @@ static HRESULT WINAPI ITextSelection_fnGetIDsOfNames(ITextSelection *me, REFIID ...@@ -4589,7 +4589,7 @@ static HRESULT WINAPI ITextSelection_fnGetIDsOfNames(ITextSelection *me, REFIID
ITypeInfo *ti; ITypeInfo *ti;
HRESULT hr; HRESULT hr;
TRACE("(%p)->(%s, %p, %u, %d, %p)\n", This, debugstr_guid(riid), rgszNames, cNames, lcid, TRACE("(%p)->(%s, %p, %u, %ld, %p)\n", This, debugstr_guid(riid), rgszNames, cNames, lcid,
rgDispId); rgDispId);
hr = get_typeinfo(ITextSelection_tid, &ti); hr = get_typeinfo(ITextSelection_tid, &ti);
...@@ -4613,7 +4613,7 @@ static HRESULT WINAPI ITextSelection_fnInvoke( ...@@ -4613,7 +4613,7 @@ static HRESULT WINAPI ITextSelection_fnInvoke(
ITypeInfo *ti; ITypeInfo *ti;
HRESULT hr; HRESULT hr;
TRACE("(%p)->(%d, %s, %d, %u, %p, %p, %p, %p)\n", This, dispIdMember, debugstr_guid(riid), lcid, TRACE("(%p)->(%ld, %s, %ld, %u, %p, %p, %p, %p)\n", This, dispIdMember, debugstr_guid(riid), lcid,
wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr); wFlags, pDispParams, pVarResult, pExcepInfo, puArgErr);
hr = get_typeinfo(ITextSelection_tid, &ti); hr = get_typeinfo(ITextSelection_tid, &ti);
...@@ -4702,7 +4702,7 @@ static HRESULT WINAPI ITextSelection_fnSetChar(ITextSelection *me, LONG ch) ...@@ -4702,7 +4702,7 @@ static HRESULT WINAPI ITextSelection_fnSetChar(ITextSelection *me, LONG ch)
{ {
struct text_selection *This = impl_from_ITextSelection(me); struct text_selection *This = impl_from_ITextSelection(me);
FIXME("(%p)->(%x): stub\n", This, ch); FIXME("(%p)->(%lx): stub\n", This, ch);
if (!This->services) if (!This->services)
return CO_E_RELEASED; return CO_E_RELEASED;
...@@ -4775,7 +4775,7 @@ static HRESULT WINAPI ITextSelection_fnSetStart(ITextSelection *me, LONG value) ...@@ -4775,7 +4775,7 @@ static HRESULT WINAPI ITextSelection_fnSetStart(ITextSelection *me, LONG value)
LONG start, end; LONG start, end;
HRESULT hr; HRESULT hr;
TRACE("(%p)->(%d)\n", This, value); TRACE("(%p)->(%ld)\n", This, value);
if (!This->services) if (!This->services)
return CO_E_RELEASED; return CO_E_RELEASED;
...@@ -4810,7 +4810,7 @@ static HRESULT WINAPI ITextSelection_fnSetEnd(ITextSelection *me, LONG value) ...@@ -4810,7 +4810,7 @@ static HRESULT WINAPI ITextSelection_fnSetEnd(ITextSelection *me, LONG value)
LONG start, end; LONG start, end;
HRESULT hr; HRESULT hr;
TRACE("(%p)->(%d)\n", This, value); TRACE("(%p)->(%ld)\n", This, value);
if (!This->services) if (!This->services)
return CO_E_RELEASED; return CO_E_RELEASED;
...@@ -4929,7 +4929,7 @@ static HRESULT WINAPI ITextSelection_fnCollapse(ITextSelection *me, LONG bStart) ...@@ -4929,7 +4929,7 @@ static HRESULT WINAPI ITextSelection_fnCollapse(ITextSelection *me, LONG bStart)
LONG start, end; LONG start, end;
HRESULT hres; HRESULT hres;
TRACE("(%p)->(%d)\n", This, bStart); TRACE("(%p)->(%ld)\n", This, bStart);
if (!This->services) if (!This->services)
return CO_E_RELEASED; return CO_E_RELEASED;
...@@ -4947,7 +4947,7 @@ static HRESULT WINAPI ITextSelection_fnExpand(ITextSelection *me, LONG unit, LON ...@@ -4947,7 +4947,7 @@ static HRESULT WINAPI ITextSelection_fnExpand(ITextSelection *me, LONG unit, LON
ITextRange *range = NULL; ITextRange *range = NULL;
HRESULT hr; HRESULT hr;
TRACE("(%p)->(%d %p)\n", This, unit, delta); TRACE("(%p)->(%ld %p)\n", This, unit, delta);
if (!This->services) if (!This->services)
return CO_E_RELEASED; return CO_E_RELEASED;
...@@ -4962,7 +4962,7 @@ static HRESULT WINAPI ITextSelection_fnGetIndex(ITextSelection *me, LONG unit, L ...@@ -4962,7 +4962,7 @@ static HRESULT WINAPI ITextSelection_fnGetIndex(ITextSelection *me, LONG unit, L
{ {
struct text_selection *This = impl_from_ITextSelection(me); struct text_selection *This = impl_from_ITextSelection(me);
FIXME("(%p)->(%d %p): stub\n", This, unit, index); FIXME("(%p)->(%ld %p): stub\n", This, unit, index);
if (!This->services) if (!This->services)
return CO_E_RELEASED; return CO_E_RELEASED;
...@@ -4975,7 +4975,7 @@ static HRESULT WINAPI ITextSelection_fnSetIndex(ITextSelection *me, LONG unit, L ...@@ -4975,7 +4975,7 @@ static HRESULT WINAPI ITextSelection_fnSetIndex(ITextSelection *me, LONG unit, L
{ {
struct text_selection *This = impl_from_ITextSelection(me); struct text_selection *This = impl_from_ITextSelection(me);
FIXME("(%p)->(%d %d %d): stub\n", This, unit, index, extend); FIXME("(%p)->(%ld %ld %ld): stub\n", This, unit, index, extend);
if (!This->services) if (!This->services)
return CO_E_RELEASED; return CO_E_RELEASED;
...@@ -4987,7 +4987,7 @@ static HRESULT WINAPI ITextSelection_fnSetRange(ITextSelection *me, LONG anchor, ...@@ -4987,7 +4987,7 @@ static HRESULT WINAPI ITextSelection_fnSetRange(ITextSelection *me, LONG anchor,
{ {
struct text_selection *This = impl_from_ITextSelection(me); struct text_selection *This = impl_from_ITextSelection(me);
FIXME("(%p)->(%d %d): stub\n", This, anchor, active); FIXME("(%p)->(%ld %ld): stub\n", This, anchor, active);
if (!This->services) if (!This->services)
return CO_E_RELEASED; return CO_E_RELEASED;
...@@ -5081,7 +5081,7 @@ static HRESULT WINAPI ITextSelection_fnStartOf(ITextSelection *me, LONG unit, LO ...@@ -5081,7 +5081,7 @@ static HRESULT WINAPI ITextSelection_fnStartOf(ITextSelection *me, LONG unit, LO
ITextRange *range = NULL; ITextRange *range = NULL;
HRESULT hr; HRESULT hr;
TRACE("(%p)->(%d %d %p)\n", This, unit, extend, delta); TRACE("(%p)->(%ld %ld %p)\n", This, unit, extend, delta);
if (!This->services) if (!This->services)
return CO_E_RELEASED; return CO_E_RELEASED;
...@@ -5099,7 +5099,7 @@ static HRESULT WINAPI ITextSelection_fnEndOf(ITextSelection *me, LONG unit, LONG ...@@ -5099,7 +5099,7 @@ static HRESULT WINAPI ITextSelection_fnEndOf(ITextSelection *me, LONG unit, LONG
ITextRange *range = NULL; ITextRange *range = NULL;
HRESULT hr; HRESULT hr;
TRACE("(%p)->(%d %d %p)\n", This, unit, extend, delta); TRACE("(%p)->(%ld %ld %p)\n", This, unit, extend, delta);
if (!This->services) if (!This->services)
return CO_E_RELEASED; return CO_E_RELEASED;
...@@ -5116,7 +5116,7 @@ static HRESULT WINAPI ITextSelection_fnMove(ITextSelection *me, LONG unit, LONG ...@@ -5116,7 +5116,7 @@ static HRESULT WINAPI ITextSelection_fnMove(ITextSelection *me, LONG unit, LONG
ITextRange *range = NULL; ITextRange *range = NULL;
HRESULT hr; HRESULT hr;
TRACE("(%p)->(%d %d %p)\n", This, unit, count, delta); TRACE("(%p)->(%ld %ld %p)\n", This, unit, count, delta);
if (!This->services) if (!This->services)
return CO_E_RELEASED; return CO_E_RELEASED;
...@@ -5134,7 +5134,7 @@ static HRESULT WINAPI ITextSelection_fnMoveStart(ITextSelection *me, LONG unit, ...@@ -5134,7 +5134,7 @@ static HRESULT WINAPI ITextSelection_fnMoveStart(ITextSelection *me, LONG unit,
ITextRange *range = NULL; ITextRange *range = NULL;
HRESULT hr; HRESULT hr;
TRACE("(%p)->(%d %d %p)\n", This, unit, count, delta); TRACE("(%p)->(%ld %ld %p)\n", This, unit, count, delta);
if (!This->services) if (!This->services)
return CO_E_RELEASED; return CO_E_RELEASED;
...@@ -5152,7 +5152,7 @@ static HRESULT WINAPI ITextSelection_fnMoveEnd(ITextSelection *me, LONG unit, LO ...@@ -5152,7 +5152,7 @@ static HRESULT WINAPI ITextSelection_fnMoveEnd(ITextSelection *me, LONG unit, LO
ITextRange *range = NULL; ITextRange *range = NULL;
HRESULT hr; HRESULT hr;
TRACE("(%p)->(%d %d %p)\n", This, unit, count, delta); TRACE("(%p)->(%ld %ld %p)\n", This, unit, count, delta);
if (!This->services) if (!This->services)
return CO_E_RELEASED; return CO_E_RELEASED;
...@@ -5168,7 +5168,7 @@ static HRESULT WINAPI ITextSelection_fnMoveWhile(ITextSelection *me, VARIANT *ch ...@@ -5168,7 +5168,7 @@ static HRESULT WINAPI ITextSelection_fnMoveWhile(ITextSelection *me, VARIANT *ch
{ {
struct text_selection *This = impl_from_ITextSelection(me); struct text_selection *This = impl_from_ITextSelection(me);
FIXME("(%p)->(%s %d %p): stub\n", This, debugstr_variant(charset), count, delta); FIXME("(%p)->(%s %ld %p): stub\n", This, debugstr_variant(charset), count, delta);
if (!This->services) if (!This->services)
return CO_E_RELEASED; return CO_E_RELEASED;
...@@ -5181,7 +5181,7 @@ static HRESULT WINAPI ITextSelection_fnMoveStartWhile(ITextSelection *me, VARIAN ...@@ -5181,7 +5181,7 @@ static HRESULT WINAPI ITextSelection_fnMoveStartWhile(ITextSelection *me, VARIAN
{ {
struct text_selection *This = impl_from_ITextSelection(me); struct text_selection *This = impl_from_ITextSelection(me);
FIXME("(%p)->(%s %d %p): stub\n", This, debugstr_variant(charset), count, delta); FIXME("(%p)->(%s %ld %p): stub\n", This, debugstr_variant(charset), count, delta);
if (!This->services) if (!This->services)
return CO_E_RELEASED; return CO_E_RELEASED;
...@@ -5194,7 +5194,7 @@ static HRESULT WINAPI ITextSelection_fnMoveEndWhile(ITextSelection *me, VARIANT ...@@ -5194,7 +5194,7 @@ static HRESULT WINAPI ITextSelection_fnMoveEndWhile(ITextSelection *me, VARIANT
{ {
struct text_selection *This = impl_from_ITextSelection(me); struct text_selection *This = impl_from_ITextSelection(me);
FIXME("(%p)->(%s %d %p): stub\n", This, debugstr_variant(charset), count, delta); FIXME("(%p)->(%s %ld %p): stub\n", This, debugstr_variant(charset), count, delta);
if (!This->services) if (!This->services)
return CO_E_RELEASED; return CO_E_RELEASED;
...@@ -5207,7 +5207,7 @@ static HRESULT WINAPI ITextSelection_fnMoveUntil(ITextSelection *me, VARIANT *ch ...@@ -5207,7 +5207,7 @@ static HRESULT WINAPI ITextSelection_fnMoveUntil(ITextSelection *me, VARIANT *ch
{ {
struct text_selection *This = impl_from_ITextSelection(me); struct text_selection *This = impl_from_ITextSelection(me);
FIXME("(%p)->(%s %d %p): stub\n", This, debugstr_variant(charset), count, delta); FIXME("(%p)->(%s %ld %p): stub\n", This, debugstr_variant(charset), count, delta);
if (!This->services) if (!This->services)
return CO_E_RELEASED; return CO_E_RELEASED;
...@@ -5220,7 +5220,7 @@ static HRESULT WINAPI ITextSelection_fnMoveStartUntil(ITextSelection *me, VARIAN ...@@ -5220,7 +5220,7 @@ static HRESULT WINAPI ITextSelection_fnMoveStartUntil(ITextSelection *me, VARIAN
{ {
struct text_selection *This = impl_from_ITextSelection(me); struct text_selection *This = impl_from_ITextSelection(me);
FIXME("(%p)->(%s %d %p): stub\n", This, debugstr_variant(charset), count, delta); FIXME("(%p)->(%s %ld %p): stub\n", This, debugstr_variant(charset), count, delta);
if (!This->services) if (!This->services)
return CO_E_RELEASED; return CO_E_RELEASED;
...@@ -5233,7 +5233,7 @@ static HRESULT WINAPI ITextSelection_fnMoveEndUntil(ITextSelection *me, VARIANT ...@@ -5233,7 +5233,7 @@ static HRESULT WINAPI ITextSelection_fnMoveEndUntil(ITextSelection *me, VARIANT
{ {
struct text_selection *This = impl_from_ITextSelection(me); struct text_selection *This = impl_from_ITextSelection(me);
FIXME("(%p)->(%s %d %p): stub\n", This, debugstr_variant(charset), count, delta); FIXME("(%p)->(%s %ld %p): stub\n", This, debugstr_variant(charset), count, delta);
if (!This->services) if (!This->services)
return CO_E_RELEASED; return CO_E_RELEASED;
...@@ -5246,7 +5246,7 @@ static HRESULT WINAPI ITextSelection_fnFindText(ITextSelection *me, BSTR text, L ...@@ -5246,7 +5246,7 @@ static HRESULT WINAPI ITextSelection_fnFindText(ITextSelection *me, BSTR text, L
{ {
struct text_selection *This = impl_from_ITextSelection(me); struct text_selection *This = impl_from_ITextSelection(me);
FIXME("(%p)->(%s %d %x %p): stub\n", This, debugstr_w(text), count, flags, length); FIXME("(%p)->(%s %ld %lx %p): stub\n", This, debugstr_w(text), count, flags, length);
if (!This->services) if (!This->services)
return CO_E_RELEASED; return CO_E_RELEASED;
...@@ -5260,7 +5260,7 @@ static HRESULT WINAPI ITextSelection_fnFindTextStart(ITextSelection *me, BSTR te ...@@ -5260,7 +5260,7 @@ static HRESULT WINAPI ITextSelection_fnFindTextStart(ITextSelection *me, BSTR te
{ {
struct text_selection *This = impl_from_ITextSelection(me); struct text_selection *This = impl_from_ITextSelection(me);
FIXME("(%p)->(%s %d %x %p): stub\n", This, debugstr_w(text), count, flags, length); FIXME("(%p)->(%s %ld %lx %p): stub\n", This, debugstr_w(text), count, flags, length);
if (!This->services) if (!This->services)
return CO_E_RELEASED; return CO_E_RELEASED;
...@@ -5273,7 +5273,7 @@ static HRESULT WINAPI ITextSelection_fnFindTextEnd(ITextSelection *me, BSTR text ...@@ -5273,7 +5273,7 @@ static HRESULT WINAPI ITextSelection_fnFindTextEnd(ITextSelection *me, BSTR text
{ {
struct text_selection *This = impl_from_ITextSelection(me); struct text_selection *This = impl_from_ITextSelection(me);
FIXME("(%p)->(%s %d %x %p): stub\n", This, debugstr_w(text), count, flags, length); FIXME("(%p)->(%s %ld %lx %p): stub\n", This, debugstr_w(text), count, flags, length);
if (!This->services) if (!This->services)
return CO_E_RELEASED; return CO_E_RELEASED;
...@@ -5286,7 +5286,7 @@ static HRESULT WINAPI ITextSelection_fnDelete(ITextSelection *me, LONG unit, LON ...@@ -5286,7 +5286,7 @@ static HRESULT WINAPI ITextSelection_fnDelete(ITextSelection *me, LONG unit, LON
{ {
struct text_selection *This = impl_from_ITextSelection(me); struct text_selection *This = impl_from_ITextSelection(me);
FIXME("(%p)->(%d %d %p): stub\n", This, unit, count, delta); FIXME("(%p)->(%ld %ld %p): stub\n", This, unit, count, delta);
if (!This->services) if (!This->services)
return CO_E_RELEASED; return CO_E_RELEASED;
...@@ -5332,7 +5332,7 @@ static HRESULT WINAPI ITextSelection_fnPaste(ITextSelection *me, VARIANT *v, LON ...@@ -5332,7 +5332,7 @@ static HRESULT WINAPI ITextSelection_fnPaste(ITextSelection *me, VARIANT *v, LON
{ {
struct text_selection *This = impl_from_ITextSelection(me); struct text_selection *This = impl_from_ITextSelection(me);
FIXME("(%p)->(%s %x): stub\n", This, debugstr_variant(v), format); FIXME("(%p)->(%s %lx): stub\n", This, debugstr_variant(v), format);
if (!This->services) if (!This->services)
return CO_E_RELEASED; return CO_E_RELEASED;
...@@ -5345,7 +5345,7 @@ static HRESULT WINAPI ITextSelection_fnCanPaste(ITextSelection *me, VARIANT *v, ...@@ -5345,7 +5345,7 @@ static HRESULT WINAPI ITextSelection_fnCanPaste(ITextSelection *me, VARIANT *v,
{ {
struct text_selection *This = impl_from_ITextSelection(me); struct text_selection *This = impl_from_ITextSelection(me);
FIXME("(%p)->(%s %x %p): stub\n", This, debugstr_variant(v), format, ret); FIXME("(%p)->(%s %lx %p): stub\n", This, debugstr_variant(v), format, ret);
if (!This->services) if (!This->services)
return CO_E_RELEASED; return CO_E_RELEASED;
...@@ -5369,7 +5369,7 @@ static HRESULT WINAPI ITextSelection_fnChangeCase(ITextSelection *me, LONG type) ...@@ -5369,7 +5369,7 @@ static HRESULT WINAPI ITextSelection_fnChangeCase(ITextSelection *me, LONG type)
{ {
struct text_selection *This = impl_from_ITextSelection(me); struct text_selection *This = impl_from_ITextSelection(me);
FIXME("(%p)->(%d): stub\n", This, type); FIXME("(%p)->(%ld): stub\n", This, type);
if (!This->services) if (!This->services)
return CO_E_RELEASED; return CO_E_RELEASED;
...@@ -5381,7 +5381,7 @@ static HRESULT WINAPI ITextSelection_fnGetPoint(ITextSelection *me, LONG type, L ...@@ -5381,7 +5381,7 @@ static HRESULT WINAPI ITextSelection_fnGetPoint(ITextSelection *me, LONG type, L
{ {
struct text_selection *This = impl_from_ITextSelection(me); struct text_selection *This = impl_from_ITextSelection(me);
FIXME("(%p)->(%d %p %p): stub\n", This, type, cx, cy); FIXME("(%p)->(%ld %p %p): stub\n", This, type, cx, cy);
if (!This->services) if (!This->services)
return CO_E_RELEASED; return CO_E_RELEASED;
...@@ -5394,7 +5394,7 @@ static HRESULT WINAPI ITextSelection_fnSetPoint(ITextSelection *me, LONG x, LONG ...@@ -5394,7 +5394,7 @@ static HRESULT WINAPI ITextSelection_fnSetPoint(ITextSelection *me, LONG x, LONG
{ {
struct text_selection *This = impl_from_ITextSelection(me); struct text_selection *This = impl_from_ITextSelection(me);
FIXME("(%p)->(%d %d %d %d): stub\n", This, x, y, type, extend); FIXME("(%p)->(%ld %ld %ld %ld): stub\n", This, x, y, type, extend);
if (!This->services) if (!This->services)
return CO_E_RELEASED; return CO_E_RELEASED;
...@@ -5406,7 +5406,7 @@ static HRESULT WINAPI ITextSelection_fnScrollIntoView(ITextSelection *me, LONG v ...@@ -5406,7 +5406,7 @@ static HRESULT WINAPI ITextSelection_fnScrollIntoView(ITextSelection *me, LONG v
{ {
struct text_selection *This = impl_from_ITextSelection(me); struct text_selection *This = impl_from_ITextSelection(me);
FIXME("(%p)->(%d): stub\n", This, value); FIXME("(%p)->(%ld): stub\n", This, value);
if (!This->services) if (!This->services)
return CO_E_RELEASED; return CO_E_RELEASED;
...@@ -5443,7 +5443,7 @@ static HRESULT WINAPI ITextSelection_fnSetFlags(ITextSelection *me, LONG flags) ...@@ -5443,7 +5443,7 @@ static HRESULT WINAPI ITextSelection_fnSetFlags(ITextSelection *me, LONG flags)
{ {
struct text_selection *This = impl_from_ITextSelection(me); struct text_selection *This = impl_from_ITextSelection(me);
FIXME("(%p)->(%x): stub\n", This, flags); FIXME("(%p)->(%lx): stub\n", This, flags);
if (!This->services) if (!This->services)
return CO_E_RELEASED; return CO_E_RELEASED;
...@@ -5468,7 +5468,7 @@ static HRESULT WINAPI ITextSelection_fnMoveLeft(ITextSelection *me, LONG unit, L ...@@ -5468,7 +5468,7 @@ static HRESULT WINAPI ITextSelection_fnMoveLeft(ITextSelection *me, LONG unit, L
{ {
struct text_selection *This = impl_from_ITextSelection(me); struct text_selection *This = impl_from_ITextSelection(me);
FIXME("(%p)->(%d %d %d %p): stub\n", This, unit, count, extend, delta); FIXME("(%p)->(%ld %ld %ld %p): stub\n", This, unit, count, extend, delta);
if (!This->services) if (!This->services)
return CO_E_RELEASED; return CO_E_RELEASED;
...@@ -5481,7 +5481,7 @@ static HRESULT WINAPI ITextSelection_fnMoveRight(ITextSelection *me, LONG unit, ...@@ -5481,7 +5481,7 @@ static HRESULT WINAPI ITextSelection_fnMoveRight(ITextSelection *me, LONG unit,
{ {
struct text_selection *This = impl_from_ITextSelection(me); struct text_selection *This = impl_from_ITextSelection(me);
FIXME("(%p)->(%d %d %d %p): stub\n", This, unit, count, extend, delta); FIXME("(%p)->(%ld %ld %ld %p): stub\n", This, unit, count, extend, delta);
if (!This->services) if (!This->services)
return CO_E_RELEASED; return CO_E_RELEASED;
...@@ -5494,7 +5494,7 @@ static HRESULT WINAPI ITextSelection_fnMoveUp(ITextSelection *me, LONG unit, LON ...@@ -5494,7 +5494,7 @@ static HRESULT WINAPI ITextSelection_fnMoveUp(ITextSelection *me, LONG unit, LON
{ {
struct text_selection *This = impl_from_ITextSelection(me); struct text_selection *This = impl_from_ITextSelection(me);
FIXME("(%p)->(%d %d %d %p): stub\n", This, unit, count, extend, delta); FIXME("(%p)->(%ld %ld %ld %p): stub\n", This, unit, count, extend, delta);
if (!This->services) if (!This->services)
return CO_E_RELEASED; return CO_E_RELEASED;
...@@ -5507,7 +5507,7 @@ static HRESULT WINAPI ITextSelection_fnMoveDown(ITextSelection *me, LONG unit, L ...@@ -5507,7 +5507,7 @@ static HRESULT WINAPI ITextSelection_fnMoveDown(ITextSelection *me, LONG unit, L
{ {
struct text_selection *This = impl_from_ITextSelection(me); struct text_selection *This = impl_from_ITextSelection(me);
FIXME("(%p)->(%d %d %d %p): stub\n", This, unit, count, extend, delta); FIXME("(%p)->(%ld %ld %ld %p): stub\n", This, unit, count, extend, delta);
if (!This->services) if (!This->services)
return CO_E_RELEASED; return CO_E_RELEASED;
...@@ -5520,7 +5520,7 @@ static HRESULT WINAPI ITextSelection_fnHomeKey(ITextSelection *me, LONG unit, LO ...@@ -5520,7 +5520,7 @@ static HRESULT WINAPI ITextSelection_fnHomeKey(ITextSelection *me, LONG unit, LO
{ {
struct text_selection *This = impl_from_ITextSelection(me); struct text_selection *This = impl_from_ITextSelection(me);
FIXME("(%p)->(%d %d %p): stub\n", This, unit, extend, delta); FIXME("(%p)->(%ld %ld %p): stub\n", This, unit, extend, delta);
if (!This->services) if (!This->services)
return CO_E_RELEASED; return CO_E_RELEASED;
...@@ -5533,7 +5533,7 @@ static HRESULT WINAPI ITextSelection_fnEndKey(ITextSelection *me, LONG unit, LON ...@@ -5533,7 +5533,7 @@ static HRESULT WINAPI ITextSelection_fnEndKey(ITextSelection *me, LONG unit, LON
{ {
struct text_selection *This = impl_from_ITextSelection(me); struct text_selection *This = impl_from_ITextSelection(me);
FIXME("(%p)->(%d %d %p): stub\n", This, unit, extend, delta); FIXME("(%p)->(%ld %ld %p): stub\n", This, unit, extend, delta);
if (!This->services) if (!This->services)
return CO_E_RELEASED; return CO_E_RELEASED;
...@@ -5714,7 +5714,7 @@ void ME_GetOLEObjectSize(const ME_Context *c, ME_Run *run, SIZE *pSize) ...@@ -5714,7 +5714,7 @@ void ME_GetOLEObjectSize(const ME_Context *c, ME_Run *run, SIZE *pSize)
pSize->cy = emh.rclBounds.bottom - emh.rclBounds.top; pSize->cy = emh.rclBounds.bottom - emh.rclBounds.top;
break; break;
default: default:
FIXME("Unsupported tymed %d\n", stgm.tymed); FIXME("Unsupported tymed %ld\n", stgm.tymed);
break; break;
} }
ReleaseStgMedium(&stgm); ReleaseStgMedium(&stgm);
...@@ -5810,7 +5810,7 @@ void draw_ole( ME_Context *c, int x, int y, ME_Run *run, BOOL selected ) ...@@ -5810,7 +5810,7 @@ void draw_ole( ME_Context *c, int x, int y, ME_Run *run, BOOL selected )
PlayEnhMetaFile(c->hDC, stgm.u.hEnhMetaFile, &rc); PlayEnhMetaFile(c->hDC, stgm.u.hEnhMetaFile, &rc);
break; break;
default: default:
FIXME("Unsupported tymed %d\n", stgm.tymed); FIXME("Unsupported tymed %ld\n", stgm.tymed);
selected = FALSE; selected = FALSE;
break; break;
} }
......
...@@ -199,7 +199,7 @@ void ME_CheckCharOffsets(ME_TextEditor *editor) ...@@ -199,7 +199,7 @@ void ME_CheckCharOffsets(ME_TextEditor *editor)
ofs = 0; ofs = 0;
break; break;
case diRun: case diRun:
TRACE_(richedit_check)("run, real ofs = %d (+ofsp = %d), counted = %d, len = %d, txt = %s, flags=%08x, fx&mask = %08x\n", TRACE_(richedit_check)("run, real ofs = %d (+ofsp = %d), counted = %d, len = %d, txt = %s, flags=%08x, fx&mask = %08lx\n",
p->member.run.nCharOfs, p->member.run.nCharOfs+ofsp, ofsp+ofs, p->member.run.nCharOfs, p->member.run.nCharOfs+ofsp, ofsp+ofs,
p->member.run.len, debugstr_run( &p->member.run ), p->member.run.len, debugstr_run( &p->member.run ),
p->member.run.nFlags, p->member.run.nFlags,
......
...@@ -264,12 +264,12 @@ void ME_DumpStyleToBuf(CHARFORMAT2W *pFmt, char buf[2048]) ...@@ -264,12 +264,12 @@ void ME_DumpStyleToBuf(CHARFORMAT2W *pFmt, char buf[2048])
p += sprintf(p, "N/A"); p += sprintf(p, "N/A");
if (pFmt->dwMask & CFM_SIZE) if (pFmt->dwMask & CFM_SIZE)
p += sprintf(p, "\nFont size: %d\n", pFmt->yHeight); p += sprintf(p, "\nFont size: %ld\n", pFmt->yHeight);
else else
p += sprintf(p, "\nFont size: N/A\n"); p += sprintf(p, "\nFont size: N/A\n");
if (pFmt->dwMask & CFM_OFFSET) if (pFmt->dwMask & CFM_OFFSET)
p += sprintf(p, "Char offset: %d\n", pFmt->yOffset); p += sprintf(p, "Char offset: %ld\n", pFmt->yOffset);
else else
p += sprintf(p, "Char offset: N/A\n"); p += sprintf(p, "Char offset: N/A\n");
......
...@@ -1084,7 +1084,7 @@ static LRESULT RichEditWndProc_common( HWND hwnd, UINT msg, WPARAM wparam, ...@@ -1084,7 +1084,7 @@ static LRESULT RichEditWndProc_common( HWND hwnd, UINT msg, WPARAM wparam,
HRESULT hr = S_OK; HRESULT hr = S_OK;
LRESULT res = 0; LRESULT res = 0;
TRACE( "enter hwnd %p msg %04x (%s) %lx %lx, unicode %d\n", TRACE( "enter hwnd %p msg %04x (%s) %Ix %Ix, unicode %d\n",
hwnd, msg, get_msg_name(msg), wparam, lparam, unicode ); hwnd, msg, get_msg_name(msg), wparam, lparam, unicode );
host = (struct host *)GetWindowLongPtrW( hwnd, 0 ); host = (struct host *)GetWindowLongPtrW( hwnd, 0 );
...@@ -1094,7 +1094,7 @@ static LRESULT RichEditWndProc_common( HWND hwnd, UINT msg, WPARAM wparam, ...@@ -1094,7 +1094,7 @@ static LRESULT RichEditWndProc_common( HWND hwnd, UINT msg, WPARAM wparam,
{ {
CREATESTRUCTW *pcs = (CREATESTRUCTW *)lparam; CREATESTRUCTW *pcs = (CREATESTRUCTW *)lparam;
TRACE( "WM_NCCREATE: hwnd %p style 0x%08x\n", hwnd, pcs->style ); TRACE( "WM_NCCREATE: hwnd %p style 0x%08lx\n", hwnd, pcs->style );
return create_windowed_editor( hwnd, pcs, FALSE ); return create_windowed_editor( hwnd, pcs, FALSE );
} }
else return DefWindowProcW( hwnd, msg, wparam, lparam ); else return DefWindowProcW( hwnd, msg, wparam, lparam );
...@@ -1108,7 +1108,7 @@ static LRESULT RichEditWndProc_common( HWND hwnd, UINT msg, WPARAM wparam, ...@@ -1108,7 +1108,7 @@ static LRESULT RichEditWndProc_common( HWND hwnd, UINT msg, WPARAM wparam,
res = send_msg_filter( host, msg, &wparam, &lparam ); res = send_msg_filter( host, msg, &wparam, &lparam );
if (!--host->notify_level && host->defer_release) if (!--host->notify_level && host->defer_release)
{ {
TRACE( "exit (filtered deferred release) hwnd %p msg %04x (%s) %lx %lx -> 0\n", TRACE( "exit (filtered deferred release) hwnd %p msg %04x (%s) %Ix %Ix -> 0\n",
hwnd, msg, get_msg_name(msg), wparam, lparam ); hwnd, msg, get_msg_name(msg), wparam, lparam );
ITextHost2_Release( &host->ITextHost_iface ); ITextHost2_Release( &host->ITextHost_iface );
return 0; return 0;
...@@ -1116,7 +1116,7 @@ static LRESULT RichEditWndProc_common( HWND hwnd, UINT msg, WPARAM wparam, ...@@ -1116,7 +1116,7 @@ static LRESULT RichEditWndProc_common( HWND hwnd, UINT msg, WPARAM wparam,
if (res) if (res)
{ {
TRACE( "exit (filtered %lu) hwnd %p msg %04x (%s) %lx %lx -> 0\n", TRACE( "exit (filtered %Iu) hwnd %p msg %04x (%s) %Ix %Ix -> 0\n",
res, hwnd, msg, get_msg_name(msg), wparam, lparam ); res, hwnd, msg, get_msg_name(msg), wparam, lparam );
return 0; return 0;
} }
...@@ -1497,7 +1497,7 @@ static LRESULT RichEditWndProc_common( HWND hwnd, UINT msg, WPARAM wparam, ...@@ -1497,7 +1497,7 @@ static LRESULT RichEditWndProc_common( HWND hwnd, UINT msg, WPARAM wparam,
if (hr == S_FALSE) if (hr == S_FALSE)
res = DefWindowProcW( hwnd, msg, wparam, lparam ); res = DefWindowProcW( hwnd, msg, wparam, lparam );
TRACE( "exit hwnd %p msg %04x (%s) %lx %lx, unicode %d -> %lu\n", TRACE( "exit hwnd %p msg %04x (%s) %Ix %Ix, unicode %d -> %Iu\n",
hwnd, msg, get_msg_name(msg), wparam, lparam, unicode, res ); hwnd, msg, get_msg_name(msg), wparam, lparam, unicode, res );
return res; return res;
...@@ -1536,7 +1536,7 @@ LRESULT WINAPI RichEdit10ANSIWndProc( HWND hwnd, UINT msg, WPARAM wparam, LPARAM ...@@ -1536,7 +1536,7 @@ LRESULT WINAPI RichEdit10ANSIWndProc( HWND hwnd, UINT msg, WPARAM wparam, LPARAM
{ {
CREATESTRUCTW *pcs = (CREATESTRUCTW *)lparam; CREATESTRUCTW *pcs = (CREATESTRUCTW *)lparam;
TRACE( "WM_NCCREATE: hwnd %p style 0x%08x\n", hwnd, pcs->style ); TRACE( "WM_NCCREATE: hwnd %p style 0x%08lx\n", hwnd, pcs->style );
return create_windowed_editor( hwnd, pcs, TRUE ); return create_windowed_editor( hwnd, pcs, TRUE );
} }
return RichEditANSIWndProc( hwnd, msg, wparam, lparam ); return RichEditANSIWndProc( hwnd, msg, wparam, lparam );
...@@ -1545,7 +1545,7 @@ LRESULT WINAPI RichEdit10ANSIWndProc( HWND hwnd, UINT msg, WPARAM wparam, LPARAM ...@@ -1545,7 +1545,7 @@ LRESULT WINAPI RichEdit10ANSIWndProc( HWND hwnd, UINT msg, WPARAM wparam, LPARAM
static LRESULT WINAPI REComboWndProc( HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam ) static LRESULT WINAPI REComboWndProc( HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam )
{ {
/* FIXME: Not implemented */ /* FIXME: Not implemented */
TRACE( "hwnd %p msg %04x (%s) %08lx %08lx\n", TRACE( "hwnd %p msg %04x (%s) %08Ix %08Ix\n",
hwnd, msg, get_msg_name( msg ), wparam, lparam ); hwnd, msg, get_msg_name( msg ), wparam, lparam );
return DefWindowProcW( hwnd, msg, wparam, lparam ); return DefWindowProcW( hwnd, msg, wparam, lparam );
} }
...@@ -1553,7 +1553,7 @@ static LRESULT WINAPI REComboWndProc( HWND hwnd, UINT msg, WPARAM wparam, LPARAM ...@@ -1553,7 +1553,7 @@ static LRESULT WINAPI REComboWndProc( HWND hwnd, UINT msg, WPARAM wparam, LPARAM
static LRESULT WINAPI REListWndProc( HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam ) static LRESULT WINAPI REListWndProc( HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam )
{ {
/* FIXME: Not implemented */ /* FIXME: Not implemented */
TRACE( "hwnd %p msg %04x (%s) %08lx %08lx\n", TRACE( "hwnd %p msg %04x (%s) %08Ix %08Ix\n",
hwnd, msg, get_msg_name( msg ), wparam, lparam ); hwnd, msg, get_msg_name( msg ), wparam, lparam );
return DefWindowProcW( hwnd, msg, wparam, lparam ); return DefWindowProcW( hwnd, msg, wparam, lparam );
} }
......
...@@ -65,7 +65,7 @@ static ULONG WINAPI ITextServicesImpl_AddRef(IUnknown *iface) ...@@ -65,7 +65,7 @@ static ULONG WINAPI ITextServicesImpl_AddRef(IUnknown *iface)
struct text_services *services = impl_from_IUnknown( iface ); struct text_services *services = impl_from_IUnknown( iface );
LONG ref = InterlockedIncrement( &services->ref ); LONG ref = InterlockedIncrement( &services->ref );
TRACE( "(%p) ref = %d\n", services, ref ); TRACE( "(%p) ref = %ld\n", services, ref );
return ref; return ref;
} }
...@@ -75,7 +75,7 @@ static ULONG WINAPI ITextServicesImpl_Release(IUnknown *iface) ...@@ -75,7 +75,7 @@ static ULONG WINAPI ITextServicesImpl_Release(IUnknown *iface)
struct text_services *services = impl_from_IUnknown( iface ); struct text_services *services = impl_from_IUnknown( iface );
LONG ref = InterlockedDecrement( &services->ref ); LONG ref = InterlockedDecrement( &services->ref );
TRACE( "(%p) ref = %d\n", services, ref ); TRACE( "(%p) ref = %ld\n", services, ref );
if (!ref) if (!ref)
{ {
...@@ -161,7 +161,7 @@ DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_TxDraw( ITextServices *iface, DWORD ...@@ -161,7 +161,7 @@ DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_TxDraw( ITextServices *iface, DWORD
HDC dc = draw; HDC dc = draw;
BOOL rewrap = FALSE; BOOL rewrap = FALSE;
TRACE( "%p: aspect %d, %d, %p, %p, draw %p, target %p, bounds %s, mf_bounds %s, update %s, %p, %d, view %d\n", TRACE( "%p: aspect %ld, %ld, %p, %p, draw %p, target %p, bounds %s, mf_bounds %s, update %s, %p, %ld, view %ld\n",
services, aspect, index, aspect_info, td, draw, target, wine_dbgstr_rect( (RECT *)bounds ), services, aspect, index, aspect_info, td, draw, target, wine_dbgstr_rect( (RECT *)bounds ),
wine_dbgstr_rect( (RECT *)mf_bounds ), wine_dbgstr_rect( update ), continue_fn, continue_param, view_id ); wine_dbgstr_rect( (RECT *)mf_bounds ), wine_dbgstr_rect( update ), continue_fn, continue_param, view_id );
...@@ -226,7 +226,7 @@ DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_OnTxSetCursor( ITextServices *iface ...@@ -226,7 +226,7 @@ DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_OnTxSetCursor( ITextServices *iface
{ {
struct text_services *services = impl_from_ITextServices( iface ); struct text_services *services = impl_from_ITextServices( iface );
TRACE( "%p: %d, %d, %p, %p, draw %p target %p client %s pos (%d, %d)\n", services, aspect, index, aspect_info, td, draw, TRACE( "%p: %ld, %ld, %p, %p, draw %p target %p client %s pos (%d, %d)\n", services, aspect, index, aspect_info, td, draw,
target, wine_dbgstr_rect( client ), x, y ); target, wine_dbgstr_rect( client ), x, y );
if (aspect != DVASPECT_CONTENT || index || aspect_info || td || draw || target || client) if (aspect != DVASPECT_CONTENT || index || aspect_info || td || draw || target || client)
...@@ -367,7 +367,7 @@ DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_TxGetNaturalSize( ITextServices *if ...@@ -367,7 +367,7 @@ DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_TxGetNaturalSize( ITextServices *if
BOOL rewrap = FALSE; BOOL rewrap = FALSE;
HRESULT hr; HRESULT hr;
TRACE( "%p: aspect %d, draw %p, target %p, td %p, mode %08x, extent %s, *width %d, *height %d\n", services, TRACE( "%p: aspect %ld, draw %p, target %p, td %p, mode %08lx, extent %s, *width %ld, *height %ld\n", services,
aspect, draw, target, td, mode, wine_dbgstr_point( (POINT *)extent ), *width, *height ); aspect, draw, target, td, mode, wine_dbgstr_point( (POINT *)extent ), *width, *height );
if (aspect != DVASPECT_CONTENT || target || td || mode != TXTNS_FITTOCONTENT ) if (aspect != DVASPECT_CONTENT || target || td || mode != TXTNS_FITTOCONTENT )
...@@ -413,7 +413,7 @@ DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_OnTxPropertyBitsChange( ITextServic ...@@ -413,7 +413,7 @@ DECLSPEC_HIDDEN HRESULT __thiscall fnTextSrv_OnTxPropertyBitsChange( ITextServic
HRESULT hr; HRESULT hr;
BOOL repaint = FALSE; BOOL repaint = FALSE;
TRACE( "%p, mask %08x, bits %08x\n", services, mask, bits ); TRACE( "%p, mask %08lx, bits %08lx\n", services, mask, bits );
services->editor->props = (services->editor->props & ~mask) | (bits & mask); services->editor->props = (services->editor->props & ~mask) | (bits & mask);
if (mask & (TXTBIT_WORDWRAP | TXTBIT_MULTILINE)) if (mask & (TXTBIT_WORDWRAP | TXTBIT_MULTILINE))
......
...@@ -136,7 +136,7 @@ static ME_Run *split_run_extents( ME_WrapContext *wc, ME_Run *run, int nVChar ) ...@@ -136,7 +136,7 @@ static ME_Run *split_run_extents( ME_WrapContext *wc, ME_Run *run, int nVChar )
assert( run->nCharOfs != -1 ); assert( run->nCharOfs != -1 );
ME_CheckCharOffsets(editor); ME_CheckCharOffsets(editor);
TRACE("Before split: %s(%d, %d)\n", debugstr_run( run ), TRACE("Before split: %s(%ld, %ld)\n", debugstr_run( run ),
run->pt.x, run->pt.y); run->pt.x, run->pt.y);
run_split( editor, &cursor ); run_split( editor, &cursor );
...@@ -153,7 +153,7 @@ static ME_Run *split_run_extents( ME_WrapContext *wc, ME_Run *run, int nVChar ) ...@@ -153,7 +153,7 @@ static ME_Run *split_run_extents( ME_WrapContext *wc, ME_Run *run, int nVChar )
ME_CheckCharOffsets(editor); ME_CheckCharOffsets(editor);
TRACE("After split: %s(%d, %d), %s(%d, %d)\n", TRACE("After split: %s(%ld, %ld), %s(%ld, %ld)\n",
debugstr_run( run ), run->pt.x, run->pt.y, debugstr_run( run ), run->pt.x, run->pt.y,
debugstr_run( run2 ), run2->pt.x, run2->pt.y); debugstr_run( run2 ), run2->pt.x, run2->pt.y);
...@@ -274,7 +274,7 @@ static void layout_row( ME_Run *start, ME_Run *last ) ...@@ -274,7 +274,7 @@ static void layout_row( ME_Run *start, ME_Run *last )
for (i = 0, run = start; i < num_runs; run = run_next( run )) for (i = 0, run = start; i < num_runs; run = run_next( run ))
{ {
run->pt.x = pos[ log_to_vis[ i ] ]; run->pt.x = pos[ log_to_vis[ i ] ];
TRACE( "%d: x = %d\n", i, run->pt.x ); TRACE( "%d: x = %ld\n", i, run->pt.x );
i++; i++;
} }
......
...@@ -76,7 +76,7 @@ ME_StreamOutFlush(ME_OutStream *pStream) ...@@ -76,7 +76,7 @@ ME_StreamOutFlush(ME_OutStream *pStream)
nWritten = pStream->pos; nWritten = pStream->pos;
stream->dwError = stream->pfnCallback(stream->dwCookie, (LPBYTE)pStream->buffer, stream->dwError = stream->pfnCallback(stream->dwCookie, (LPBYTE)pStream->buffer,
pStream->pos, &nWritten); pStream->pos, &nWritten);
TRACE("error=%u written=%u\n", stream->dwError, nWritten); TRACE("error=%lu written=%lu\n", stream->dwError, nWritten);
if (nWritten == 0 || stream->dwError) if (nWritten == 0 || stream->dwError)
return FALSE; return FALSE;
/* Don't resend partial chunks if nWritten < pStream->pos */ /* Don't resend partial chunks if nWritten < pStream->pos */
...@@ -92,7 +92,7 @@ static LONG ...@@ -92,7 +92,7 @@ static LONG
ME_StreamOutFree(ME_OutStream *pStream) ME_StreamOutFree(ME_OutStream *pStream)
{ {
LONG written = pStream->written; LONG written = pStream->written;
TRACE("total length = %u\n", written); TRACE("total length = %lu\n", written);
heap_free(pStream); heap_free(pStream);
return written; return written;
...@@ -400,9 +400,9 @@ static BOOL stream_out_table_props( ME_TextEditor *editor, ME_OutStream *pStream ...@@ -400,9 +400,9 @@ static BOOL stream_out_table_props( ME_TextEditor *editor, ME_OutStream *pStream
cell = table_row_first_cell( para ); cell = table_row_first_cell( para );
assert( cell ); assert( cell );
if (pFmt->dxOffset) if (pFmt->dxOffset)
sprintf(props + strlen(props), "\\trgaph%d", pFmt->dxOffset); sprintf(props + strlen(props), "\\trgaph%ld", pFmt->dxOffset);
if (pFmt->dxStartIndent) if (pFmt->dxStartIndent)
sprintf(props + strlen(props), "\\trleft%d", pFmt->dxStartIndent); sprintf(props + strlen(props), "\\trleft%ld", pFmt->dxStartIndent);
do do
{ {
ME_Border* borders[4] = { &cell->border.top, &cell->border.left, ME_Border* borders[4] = { &cell->border.top, &cell->border.left,
...@@ -434,9 +434,9 @@ static BOOL stream_out_table_props( ME_TextEditor *editor, ME_OutStream *pStream ...@@ -434,9 +434,9 @@ static BOOL stream_out_table_props( ME_TextEditor *editor, ME_OutStream *pStream
assert( !(para->nFlags & (MEPF_ROWSTART | MEPF_ROWEND | MEPF_CELL)) ); assert( !(para->nFlags & (MEPF_ROWSTART | MEPF_ROWEND | MEPF_CELL)) );
if (pFmt->dxOffset) if (pFmt->dxOffset)
sprintf(props + strlen(props), "\\trgaph%d", pFmt->dxOffset); sprintf(props + strlen(props), "\\trgaph%ld", pFmt->dxOffset);
if (pFmt->dxStartIndent) if (pFmt->dxStartIndent)
sprintf(props + strlen(props), "\\trleft%d", pFmt->dxStartIndent); sprintf(props + strlen(props), "\\trleft%ld", pFmt->dxStartIndent);
for (i = 0; i < 4; i++) for (i = 0; i < 4; i++)
{ {
if (borders[i]->width) if (borders[i]->width)
...@@ -452,7 +452,7 @@ static BOOL stream_out_table_props( ME_TextEditor *editor, ME_OutStream *pStream ...@@ -452,7 +452,7 @@ static BOOL stream_out_table_props( ME_TextEditor *editor, ME_OutStream *pStream
} }
for (i = 0; i < pFmt->cTabCount; i++) for (i = 0; i < pFmt->cTabCount; i++)
{ {
sprintf(props + strlen(props), "\\cellx%d", pFmt->rgxTabs[i] & 0x00FFFFFF); sprintf(props + strlen(props), "\\cellx%ld", pFmt->rgxTabs[i] & 0x00FFFFFF);
} }
} }
if (!ME_StreamOutPrint(pStream, props)) if (!ME_StreamOutPrint(pStream, props))
...@@ -631,13 +631,13 @@ static BOOL stream_out_para_props( ME_TextEditor *editor, ME_OutStream *pStream, ...@@ -631,13 +631,13 @@ static BOOL stream_out_para_props( ME_TextEditor *editor, ME_OutStream *pStream,
strcat(props, "\\sl-480\\slmult1"); strcat(props, "\\sl-480\\slmult1");
break; break;
case 3: case 3:
sprintf(props + strlen(props), "\\sl%d\\slmult0", fmt->dyLineSpacing); sprintf(props + strlen(props), "\\sl%ld\\slmult0", fmt->dyLineSpacing);
break; break;
case 4: case 4:
sprintf(props + strlen(props), "\\sl-%d\\slmult0", fmt->dyLineSpacing); sprintf(props + strlen(props), "\\sl-%ld\\slmult0", fmt->dyLineSpacing);
break; break;
case 5: case 5:
sprintf(props + strlen(props), "\\sl-%d\\slmult1", fmt->dyLineSpacing * 240 / 20); sprintf(props + strlen(props), "\\sl-%ld\\slmult1", fmt->dyLineSpacing * 240 / 20);
break; break;
} }
} }
...@@ -663,11 +663,11 @@ static BOOL stream_out_para_props( ME_TextEditor *editor, ME_OutStream *pStream, ...@@ -663,11 +663,11 @@ static BOOL stream_out_para_props( ME_TextEditor *editor, ME_OutStream *pStream,
fmt->dwMask & PFM_TABLE && fmt->wEffects & PFE_TABLE)) fmt->dwMask & PFM_TABLE && fmt->wEffects & PFE_TABLE))
{ {
if (fmt->dxOffset) if (fmt->dxOffset)
sprintf(props + strlen(props), "\\li%d", fmt->dxOffset); sprintf(props + strlen(props), "\\li%ld", fmt->dxOffset);
if (fmt->dxStartIndent) if (fmt->dxStartIndent)
sprintf(props + strlen(props), "\\fi%d", fmt->dxStartIndent); sprintf(props + strlen(props), "\\fi%ld", fmt->dxStartIndent);
if (fmt->dxRightIndent) if (fmt->dxRightIndent)
sprintf(props + strlen(props), "\\ri%d", fmt->dxRightIndent); sprintf(props + strlen(props), "\\ri%ld", fmt->dxRightIndent);
if (fmt->dwMask & PFM_TABSTOPS) { if (fmt->dwMask & PFM_TABSTOPS) {
static const char * const leader[6] = { "", "\\tldot", "\\tlhyph", "\\tlul", "\\tlth", "\\tleq" }; static const char * const leader[6] = { "", "\\tldot", "\\tlhyph", "\\tlul", "\\tlth", "\\tleq" };
...@@ -690,14 +690,14 @@ static BOOL stream_out_para_props( ME_TextEditor *editor, ME_OutStream *pStream, ...@@ -690,14 +690,14 @@ static BOOL stream_out_para_props( ME_TextEditor *editor, ME_OutStream *pStream,
} }
if (fmt->rgxTabs[i] >> 28 <= 5) if (fmt->rgxTabs[i] >> 28 <= 5)
strcat(props, leader[fmt->rgxTabs[i] >> 28]); strcat(props, leader[fmt->rgxTabs[i] >> 28]);
sprintf(props+strlen(props), "\\tx%d", fmt->rgxTabs[i]&0x00FFFFFF); sprintf(props+strlen(props), "\\tx%ld", fmt->rgxTabs[i]&0x00FFFFFF);
} }
} }
} }
if (fmt->dySpaceAfter) if (fmt->dySpaceAfter)
sprintf(props + strlen(props), "\\sa%d", fmt->dySpaceAfter); sprintf(props + strlen(props), "\\sa%ld", fmt->dySpaceAfter);
if (fmt->dySpaceBefore) if (fmt->dySpaceBefore)
sprintf(props + strlen(props), "\\sb%d", fmt->dySpaceBefore); sprintf(props + strlen(props), "\\sb%ld", fmt->dySpaceBefore);
if (fmt->sStyle != -1) if (fmt->sStyle != -1)
sprintf(props + strlen(props), "\\s%d", fmt->sStyle); sprintf(props + strlen(props), "\\s%d", fmt->sStyle);
...@@ -791,12 +791,12 @@ ME_StreamOutRTFCharProps(ME_OutStream *pStream, CHARFORMAT2W *fmt) ...@@ -791,12 +791,12 @@ ME_StreamOutRTFCharProps(ME_OutStream *pStream, CHARFORMAT2W *fmt)
if (old_fmt->yOffset != fmt->yOffset) if (old_fmt->yOffset != fmt->yOffset)
{ {
if (fmt->yOffset >= 0) if (fmt->yOffset >= 0)
sprintf(props + strlen(props), "\\up%d", fmt->yOffset); sprintf(props + strlen(props), "\\up%ld", fmt->yOffset);
else else
sprintf(props + strlen(props), "\\dn%d", -fmt->yOffset); sprintf(props + strlen(props), "\\dn%ld", -fmt->yOffset);
} }
if (old_fmt->yHeight != fmt->yHeight) if (old_fmt->yHeight != fmt->yHeight)
sprintf(props + strlen(props), "\\fs%d", fmt->yHeight / 10); sprintf(props + strlen(props), "\\fs%ld", fmt->yHeight / 10);
if (old_fmt->sSpacing != fmt->sSpacing) if (old_fmt->sSpacing != fmt->sSpacing)
sprintf(props + strlen(props), "\\expnd%u\\expndtw%u", fmt->sSpacing / 5, fmt->sSpacing); sprintf(props + strlen(props), "\\expnd%u\\expndtw%u", fmt->sSpacing / 5, fmt->sSpacing);
if ((old_fmt->dwEffects ^ fmt->dwEffects) & (CFM_SUBSCRIPT | CFM_SUPERSCRIPT)) if ((old_fmt->dwEffects ^ fmt->dwEffects) & (CFM_SUBSCRIPT | CFM_SUPERSCRIPT))
......
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