Commit 189b6272 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

oledlg: Enable compilation with long types.

parent 8bbe1e45
EXTRADEFS = -DWINE_NO_LONG_TYPES
MODULE = oledlg.dll MODULE = oledlg.dll
IMPORTLIB = oledlg IMPORTLIB = oledlg
IMPORTS = ole32 comdlg32 user32 advapi32 IMPORTS = ole32 comdlg32 user32 advapi32
......
...@@ -84,7 +84,7 @@ static void register_messages(void) ...@@ -84,7 +84,7 @@ static void register_messages(void)
*/ */
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID fImpLoad) BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID fImpLoad)
{ {
TRACE("%p 0x%x %p\n", hinstDLL, fdwReason, fImpLoad); TRACE("%p 0x%lx %p\n", hinstDLL, fdwReason, fImpLoad);
switch(fdwReason) { switch(fdwReason) {
case DLL_PROCESS_ATTACH: case DLL_PROCESS_ATTACH:
......
...@@ -78,7 +78,7 @@ static void dump_ps_flags(DWORD flags) ...@@ -78,7 +78,7 @@ static void dump_ps_flags(DWORD flags)
strcat(flagstr, "|"); strcat(flagstr, "|");
} }
} }
TRACE("flags %08x %s\n", flags, flagstr); TRACE("flags %08lx %s\n", flags, flagstr);
} }
static void dump_pastespecial(const OLEUIPASTESPECIALW *ps) static void dump_pastespecial(const OLEUIPASTESPECIALW *ps)
...@@ -87,7 +87,7 @@ static void dump_pastespecial(const OLEUIPASTESPECIALW *ps) ...@@ -87,7 +87,7 @@ static void dump_pastespecial(const OLEUIPASTESPECIALW *ps)
UINT j; UINT j;
dump_ps_flags(ps->dwFlags); dump_ps_flags(ps->dwFlags);
TRACE("hwnd %p caption %s hook %p custdata %lx\n", TRACE("hwnd %p caption %s hook %p custdata %Ix\n",
ps->hWndOwner, debugstr_w(ps->lpszCaption), ps->lpfnHook, ps->lCustData); ps->hWndOwner, debugstr_w(ps->lpszCaption), ps->lpfnHook, ps->lCustData);
if(IS_INTRESOURCE(ps->lpszTemplate)) if(IS_INTRESOURCE(ps->lpszTemplate))
TRACE("hinst %p template %04x hresource %p\n", ps->hInstance, (WORD)(ULONG_PTR)ps->lpszTemplate, ps->hResource); TRACE("hinst %p template %04x hresource %p\n", ps->hInstance, (WORD)(ULONG_PTR)ps->lpszTemplate, ps->hResource);
...@@ -96,16 +96,16 @@ static void dump_pastespecial(const OLEUIPASTESPECIALW *ps) ...@@ -96,16 +96,16 @@ static void dump_pastespecial(const OLEUIPASTESPECIALW *ps)
TRACE("dataobj %p arrpasteent %p cpasteent %d arrlinktype %p clinktype %d\n", TRACE("dataobj %p arrpasteent %p cpasteent %d arrlinktype %p clinktype %d\n",
ps->lpSrcDataObj, ps->arrPasteEntries, ps->cPasteEntries, ps->lpSrcDataObj, ps->arrPasteEntries, ps->cPasteEntries,
ps->arrLinkTypes, ps->cLinkTypes); ps->arrLinkTypes, ps->cLinkTypes);
TRACE("cclsidex %d lpclsidex %p nselect %d flink %d hmetapict %p size(%d,%d)\n", TRACE("cclsidex %d lpclsidex %p nselect %d flink %d hmetapict %p size(%ld,%ld)\n",
ps->cClsidExclude, ps->lpClsidExclude, ps->nSelectedIndex, ps->fLink, ps->cClsidExclude, ps->lpClsidExclude, ps->nSelectedIndex, ps->fLink,
ps->hMetaPict, ps->sizel.cx, ps->sizel.cy); ps->hMetaPict, ps->sizel.cx, ps->sizel.cy);
for(i = 0; i < ps->cPasteEntries; i++) for(i = 0; i < ps->cPasteEntries; i++)
{ {
TRACE("arrPasteEntries[%d]: cFormat %08x pTargetDevice %p dwAspect %d lindex %d tymed %d\n", TRACE("arrPasteEntries[%d]: cFormat %08x pTargetDevice %p dwAspect %ld lindex %ld tymed %ld\n",
i, ps->arrPasteEntries[i].fmtetc.cfFormat, ps->arrPasteEntries[i].fmtetc.ptd, i, ps->arrPasteEntries[i].fmtetc.cfFormat, ps->arrPasteEntries[i].fmtetc.ptd,
ps->arrPasteEntries[i].fmtetc.dwAspect, ps->arrPasteEntries[i].fmtetc.lindex, ps->arrPasteEntries[i].fmtetc.dwAspect, ps->arrPasteEntries[i].fmtetc.lindex,
ps->arrPasteEntries[i].fmtetc.tymed); ps->arrPasteEntries[i].fmtetc.tymed);
TRACE("\tformat name %s result text %s flags %04x\n", debugstr_w(ps->arrPasteEntries[i].lpstrFormatName), TRACE("\tformat name %s result text %s flags %04lx\n", debugstr_w(ps->arrPasteEntries[i].lpstrFormatName),
debugstr_w(ps->arrPasteEntries[i].lpstrResultText), ps->arrPasteEntries[i].dwFlags); debugstr_w(ps->arrPasteEntries[i].lpstrResultText), ps->arrPasteEntries[i].dwFlags);
} }
for(i = 0; i < ps->cLinkTypes; i++) for(i = 0; i < ps->cLinkTypes; i++)
...@@ -228,7 +228,7 @@ static DWORD init_pastelist(HWND hdlg, OLEUIPASTESPECIALW *ps) ...@@ -228,7 +228,7 @@ static DWORD init_pastelist(HWND hdlg, OLEUIPASTESPECIALW *ps)
/* The native version grabs only the first 20 fmts and we do the same */ /* The native version grabs only the first 20 fmts and we do the same */
hr = IEnumFORMATETC_Next(penum, ARRAY_SIZE(fmts), fmts, &fetched); hr = IEnumFORMATETC_Next(penum, ARRAY_SIZE(fmts), fmts, &fetched);
TRACE("got %d formats hr %08x\n", fetched, hr); TRACE("got %ld formats hr %08lx\n", fetched, hr);
if(SUCCEEDED(hr)) if(SUCCEEDED(hr))
{ {
...@@ -271,7 +271,7 @@ static DWORD init_linklist(HWND hdlg, OLEUIPASTESPECIALW *ps) ...@@ -271,7 +271,7 @@ static DWORD init_linklist(HWND hdlg, OLEUIPASTESPECIALW *ps)
if(hr == S_OK) if(hr == S_OK)
supported_mask |= 1 << link; supported_mask |= 1 << link;
} }
TRACE("supported_mask %02x\n", supported_mask); TRACE("supported_mask %02lx\n", supported_mask);
for(req_fmt = 0; req_fmt < ps->cPasteEntries; req_fmt++) for(req_fmt = 0; req_fmt < ps->cPasteEntries; req_fmt++)
{ {
DWORD linktypes; DWORD linktypes;
...@@ -515,7 +515,7 @@ static INT_PTR CALLBACK ps_dlg_proc(HWND hdlg, UINT msg, WPARAM wp, LPARAM lp) ...@@ -515,7 +515,7 @@ static INT_PTR CALLBACK ps_dlg_proc(HWND hdlg, UINT msg, WPARAM wp, LPARAM lp)
static const WCHAR prop_name[] = {'W','i','n','e','_','S','t','r','u','c','t','u','r','e',0}; static const WCHAR prop_name[] = {'W','i','n','e','_','S','t','r','u','c','t','u','r','e',0};
ps_struct_t *ps_struct; ps_struct_t *ps_struct;
TRACE("(%p, %04x, %08lx, %08lx)\n", hdlg, msg, wp, lp); TRACE("(%p, %04x, %08Ix, %08Ix)\n", hdlg, msg, wp, lp);
ps_struct = GetPropW(hdlg, prop_name); ps_struct = GetPropW(hdlg, prop_name);
......
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