Commit e7dda902 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

wordpad: Enable compilation with long types.

parent a513e067
EXTRADEFS = -DWINE_NO_LONG_TYPES
MODULE = wordpad.exe
IMPORTS = comdlg32 uuid ole32 shell32 user32 gdi32 advapi32 comctl32
......
......@@ -107,7 +107,7 @@ static HRESULT STDMETHODCALLTYPE RichEditOleCallback_QueryInsertObject(
LPSTORAGE lpstg,
LONG cp)
{
WINE_TRACE("(%p, %p, %p, %d)\n", This, lpclsid, lpstg, cp);
WINE_TRACE("(%p, %p, %p, %ld)\n", This, lpclsid, lpstg, cp);
return S_OK;
}
......@@ -127,7 +127,7 @@ static HRESULT STDMETHODCALLTYPE RichEditOleCallback_QueryAcceptData(
BOOL fReally,
HGLOBAL hMetaPict)
{
WINE_TRACE("(%p, %p, %p, %x, %d, %p)\n",
WINE_TRACE("(%p, %p, %p, %lx, %d, %p)\n",
This, lpdataobj, lpcfFormat, reco, fReally, hMetaPict);
return S_OK;
}
......@@ -146,7 +146,7 @@ static HRESULT STDMETHODCALLTYPE RichEditOleCallback_GetClipboardData(
DWORD reco,
LPDATAOBJECT *lplpdataobj)
{
WINE_TRACE("(%p, %p, %x, %p)\n", This, lpchrg, reco, lplpdataobj);
WINE_TRACE("(%p, %p, %lx, %p)\n", This, lpchrg, reco, lplpdataobj);
return E_NOTIMPL;
}
......@@ -156,7 +156,7 @@ static HRESULT STDMETHODCALLTYPE RichEditOleCallback_GetDragDropEffect(
DWORD grfKeyState,
LPDWORD pdwEffect)
{
WINE_TRACE("(%p, %d, %x, %p)\n", This, fDrag, grfKeyState, pdwEffect);
WINE_TRACE("(%p, %d, %lx, %p)\n", This, fDrag, grfKeyState, pdwEffect);
if (pdwEffect)
*pdwEffect = DROPEFFECT_COPY;
return S_OK;
......
......@@ -2023,7 +2023,7 @@ static LRESULT OnCreate( HWND hWnd )
if (!hEditorWnd)
{
fprintf(stderr, "Error code %u\n", GetLastError());
fprintf(stderr, "Error code %lu\n", GetLastError());
return -1;
}
assert(hEditorWnd);
......@@ -2164,7 +2164,7 @@ static LRESULT OnNotify( HWND hWnd, LPARAM lParam)
update_font_list();
sprintf( buf,"selection = %d..%d, line count=%ld",
sprintf( buf,"selection = %ld..%ld, line count=%Id",
pSC->chrg.cpMin, pSC->chrg.cpMax,
SendMessageW(hwndEditor, EM_GETLINECOUNT, 0, 0));
SetWindowTextA(GetDlgItem(hWnd, IDC_STATUSBAR), buf);
......@@ -2451,7 +2451,7 @@ static LRESULT OnCommand( HWND hWnd, WPARAM wParam, LPARAM lParam)
SendMessageW(hwndEditor, EM_EXGETSEL, 0, (LPARAM)&range);
data = HeapAlloc(GetProcessHeap(), 0, sizeof(*data) * (range.cpMax-range.cpMin+1));
SendMessageW(hwndEditor, EM_GETSELTEXT, 0, (LPARAM)data);
sprintf(buf, "Start = %d, End = %d", range.cpMin, range.cpMax);
sprintf(buf, "Start = %ld, End = %ld", range.cpMin, range.cpMax);
MessageBoxA(hWnd, buf, "Editor", MB_OK);
MessageBoxW(hWnd, data, wszAppTitle, MB_OK);
HeapFree( GetProcessHeap(), 0, data);
......
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