[PATCH 11/27] dlls/explorerframe: enable compilation with long types
Eric Pouech
eric.pouech at gmail.com
Thu Feb 10 01:42:20 CST 2022
Signed-off-by: Eric Pouech <eric.pouech at gmail.com>
---
dlls/explorerframe/Makefile.in | 1 -
dlls/explorerframe/explorerframe_main.c | 4 ++--
dlls/explorerframe/nstc.c | 34 ++++++++++++++++---------------
dlls/explorerframe/taskbarlist.c | 6 +++--
4 files changed, 22 insertions(+), 23 deletions(-)
diff --git a/dlls/explorerframe/Makefile.in b/dlls/explorerframe/Makefile.in
index e37e3353ca8..18d054c7fad 100644
--- a/dlls/explorerframe/Makefile.in
+++ b/dlls/explorerframe/Makefile.in
@@ -1,4 +1,3 @@
-EXTRADEFS = -DWINE_NO_LONG_TYPES
MODULE = explorerframe.dll
IMPORTS = uuid ole32 comctl32 shell32 user32
diff --git a/dlls/explorerframe/explorerframe_main.c b/dlls/explorerframe/explorerframe_main.c
index d0d8fd19e9b..efaaae0ae39 100644
--- a/dlls/explorerframe/explorerframe_main.c
+++ b/dlls/explorerframe/explorerframe_main.c
@@ -45,7 +45,7 @@ LONG EFRAME_refCount = 0;
*/
BOOL WINAPI DllMain(HINSTANCE hinst, DWORD fdwReason, LPVOID fImpLoad)
{
- TRACE("%p, 0x%x, %p\n", hinst, fdwReason, fImpLoad);
+ TRACE("%p, 0x%lx, %p\n", hinst, fdwReason, fImpLoad);
switch (fdwReason)
{
case DLL_PROCESS_ATTACH:
@@ -61,7 +61,7 @@ BOOL WINAPI DllMain(HINSTANCE hinst, DWORD fdwReason, LPVOID fImpLoad)
*/
HRESULT WINAPI DllCanUnloadNow(void)
{
- TRACE("refCount is %d\n", EFRAME_refCount);
+ TRACE("refCount is %ld\n", EFRAME_refCount);
return EFRAME_refCount ? S_FALSE : S_OK;
}
diff --git a/dlls/explorerframe/nstc.c b/dlls/explorerframe/nstc.c
index 0698e6fa065..cd4cf0388ee 100644
--- a/dlls/explorerframe/nstc.c
+++ b/dlls/explorerframe/nstc.c
@@ -192,7 +192,7 @@ static DWORD treeview_style_from_nstcs(NSTC2Impl *This, NSTCSTYLE nstcs,
NSTCSTYLE nstcs_mask, DWORD *new_style)
{
DWORD old_style, tv_mask = 0;
- TRACE("%p, %x, %x, %p\n", This, nstcs, nstcs_mask, new_style);
+ TRACE("%p, %lx, %lx, %p\n", This, nstcs, nstcs_mask, new_style);
if(This->hwnd_tv)
old_style = GetWindowLongPtrW(This->hwnd_tv, GWL_STYLE);
@@ -232,7 +232,7 @@ static DWORD treeview_style_from_nstcs(NSTC2Impl *This, NSTCSTYLE nstcs,
*new_style = (old_style & ~tv_mask) | (*new_style & tv_mask);
- TRACE("old: %08x, new: %08x\n", old_style, *new_style);
+ TRACE("old: %08lx, new: %08lx\n", old_style, *new_style);
return old_style^*new_style;
}
@@ -700,7 +700,7 @@ static LRESULT on_wm_mbuttonup(NSTC2Impl *This, WPARAM wParam, LPARAM lParam)
TVHITTESTINFO tvhit;
IShellItem *psi;
HRESULT hr;
- TRACE("%p (%lx, %lx)\n", This, wParam, lParam);
+ TRACE("%p (%Ix, %Ix)\n", This, wParam, lParam);
tvhit.pt.x = (int)(short)LOWORD(lParam);
tvhit.pt.y = (int)(short)HIWORD(lParam);
@@ -724,7 +724,7 @@ static LRESULT on_kbd_event(NSTC2Impl *This, UINT uMsg, WPARAM wParam, LPARAM lP
{
IShellItem *psi;
HTREEITEM hitem;
- TRACE("%p : %d, %lx, %lx\n", This, uMsg, wParam, lParam);
+ TRACE("%p : %d, %Ix, %Ix\n", This, uMsg, wParam, lParam);
/* Handled by the client? */
if(FAILED(events_OnKeyboardInput(This, uMsg, wParam, lParam)))
@@ -837,7 +837,7 @@ static ULONG WINAPI NSTC2_fnAddRef(INameSpaceTreeControl2* iface)
NSTC2Impl *This = impl_from_INameSpaceTreeControl2(iface);
LONG ref = InterlockedIncrement(&This->ref);
- TRACE("%p - ref %d\n", This, ref);
+ TRACE("%p - ref %ld\n", This, ref);
return ref;
}
@@ -847,7 +847,7 @@ static ULONG WINAPI NSTC2_fnRelease(INameSpaceTreeControl2* iface)
NSTC2Impl *This = impl_from_INameSpaceTreeControl2(iface);
LONG ref = InterlockedDecrement(&This->ref);
- TRACE("%p - ref: %d\n", This, ref);
+ TRACE("%p - ref: %ld\n", This, ref);
if(!ref)
{
@@ -871,10 +871,10 @@ static HRESULT WINAPI NSTC2_fnInitialize(INameSpaceTreeControl2* iface,
RECT rc;
static const WCHAR NSTC2_CLASS_NAME[] = L"NamespaceTreeControl";
- TRACE("%p (%p, %p, %x)\n", This, hwndParent, prc, nstcsFlags);
+ TRACE("%p (%p, %p, %lx)\n", This, hwndParent, prc, nstcsFlags);
if(nstcsFlags & unsupported_styles)
- FIXME("0x%08x contains the unsupported style(s) 0x%08x\n",
+ FIXME("0x%08lx contains the unsupported style(s) 0x%08lx\n",
nstcsFlags, nstcsFlags & unsupported_styles);
This->style = nstcsFlags;
@@ -949,7 +949,7 @@ static HRESULT WINAPI NSTC2_fnTreeUnadvise(INameSpaceTreeControl2* iface, DWORD
{
NSTC2Impl *This = impl_from_INameSpaceTreeControl2(iface);
- TRACE("%p (%x)\n", This, cookie);
+ TRACE("%p (%lx)\n", This, cookie);
/* The cookie is ignored. */
@@ -987,7 +987,7 @@ static HRESULT WINAPI NSTC2_fnInsertRoot(INameSpaceTreeControl2* iface,
HTREEITEM add_after_hitem;
int i;
- TRACE("%p, %d, %p, %x, %x, %p\n", This, iIndex, psiRoot, grfEnumFlags, grfRootStyle, pif);
+ TRACE("%p, %d, %p, %lx, %lx, %p\n", This, iIndex, psiRoot, grfEnumFlags, grfRootStyle, pif);
new_root = heap_alloc(sizeof(*new_root));
if(!new_root)
@@ -1045,7 +1045,7 @@ static HRESULT WINAPI NSTC2_fnAppendRoot(INameSpaceTreeControl2* iface,
{
NSTC2Impl *This = impl_from_INameSpaceTreeControl2(iface);
UINT root_count;
- TRACE("%p, %p, %x, %x, %p\n",
+ TRACE("%p, %p, %lx, %lx, %p\n",
This, psiRoot, grfEnumFlags, grfRootStyle, pif);
root_count = list_count(&This->roots);
@@ -1151,7 +1151,7 @@ static HRESULT WINAPI NSTC2_fnSetItemState(INameSpaceTreeControl2* iface,
TVITEMEXW tvi;
HTREEITEM hitem;
- TRACE("%p (%p, %x, %x)\n", This, psi, nstcisMask, nstcisFlags);
+ TRACE("%p (%p, %lx, %lx)\n", This, psi, nstcisMask, nstcisFlags);
hitem = treeitem_from_shellitem(This, psi);
if(!hitem) return E_INVALIDARG;
@@ -1213,7 +1213,7 @@ static HRESULT WINAPI NSTC2_fnGetItemState(INameSpaceTreeControl2* iface,
NSTC2Impl *This = impl_from_INameSpaceTreeControl2(iface);
HTREEITEM hitem;
TVITEMEXW tvi;
- TRACE("%p (%p, %x, %p)\n", This, psi, nstcisMask, pnstcisFlags);
+ TRACE("%p (%p, %lx, %p)\n", This, psi, nstcisMask, pnstcisFlags);
hitem = treeitem_from_shellitem(This, psi);
if(!hitem)
@@ -1425,7 +1425,7 @@ static HRESULT WINAPI NSTC2_fnSetControlStyle(INameSpaceTreeControl2* iface,
NSTCS_SINGLECLICKEXPAND | NSTCS_NOREPLACEOPEN | NSTCS_NOORDERSTREAM |
NSTCS_FAVORITESMODE | NSTCS_EMPTYTEXT | NSTCS_ALLOWJUNCTIONS |
NSTCS_SHOWTABSBUTTON | NSTCS_SHOWDELETEBUTTON | NSTCS_SHOWREFRESHBUTTON;
- TRACE("%p (%x, %x)\n", This, nstcsMask, nstcsStyle);
+ TRACE("%p (%lx, %lx)\n", This, nstcsMask, nstcsStyle);
/* Fail if there is an attempt to set an unknown style. */
if(nstcsMask & ~(tv_style_flags | host_style_flags | nstc_flags))
@@ -1455,7 +1455,7 @@ static HRESULT WINAPI NSTC2_fnSetControlStyle(INameSpaceTreeControl2* iface,
}
if((nstcsStyle & nstcsMask) & unsupported_styles)
- FIXME("mask & style (0x%08x) contains unsupported style(s): 0x%08x\n",
+ FIXME("mask & style (0x%08lx) contains unsupported style(s): 0x%08lx\n",
(nstcsStyle & nstcsMask),
(nstcsStyle & nstcsMask) & unsupported_styles);
@@ -1470,7 +1470,7 @@ static HRESULT WINAPI NSTC2_fnGetControlStyle(INameSpaceTreeControl2* iface,
NSTCSTYLE *pnstcsStyle)
{
NSTC2Impl *This = impl_from_INameSpaceTreeControl2(iface);
- TRACE("%p (%x, %p)\n", This, nstcsMask, pnstcsStyle);
+ TRACE("%p (%lx, %p)\n", This, nstcsMask, pnstcsStyle);
*pnstcsStyle = (This->style & nstcsMask);
@@ -1485,7 +1485,7 @@ static HRESULT WINAPI NSTC2_fnSetControlStyle2(INameSpaceTreeControl2* iface,
TRACE("%p (%x, %x)\n", This, nstcsMask, nstcsStyle);
if((nstcsStyle & nstcsMask) & unsupported_styles2)
- FIXME("mask & style (0x%08x) contains unsupported style(s): 0x%08x\n",
+ FIXME("mask & style (0x%08x) contains unsupported style(s): 0x%08lx\n",
(nstcsStyle & nstcsMask),
(nstcsStyle & nstcsMask) & unsupported_styles2);
diff --git a/dlls/explorerframe/taskbarlist.c b/dlls/explorerframe/taskbarlist.c
index 7e1f5b92c5b..b4bc104cd6b 100644
--- a/dlls/explorerframe/taskbarlist.c
+++ b/dlls/explorerframe/taskbarlist.c
@@ -67,7 +67,7 @@ static ULONG STDMETHODCALLTYPE taskbar_list_AddRef(ITaskbarList4 *iface)
struct taskbar_list *This = impl_from_ITaskbarList4(iface);
ULONG refcount = InterlockedIncrement(&This->refcount);
- TRACE("%p increasing refcount to %u\n", This, refcount);
+ TRACE("%p increasing refcount to %lu\n", This, refcount);
return refcount;
}
@@ -77,7 +77,7 @@ static ULONG STDMETHODCALLTYPE taskbar_list_Release(ITaskbarList4 *iface)
struct taskbar_list *This = impl_from_ITaskbarList4(iface);
ULONG refcount = InterlockedDecrement(&This->refcount);
- TRACE("%p decreasing refcount to %u\n", This, refcount);
+ TRACE("%p decreasing refcount to %lu\n", This, refcount);
if (!refcount)
{
@@ -190,7 +190,7 @@ static HRESULT STDMETHODCALLTYPE taskbar_list_SetTabActive(ITaskbarList4 *iface,
HWND hwndMDI,
DWORD dwReserved)
{
- FIXME("iface %p, hwndTab %p, hwndMDI %p, dwReserved %x stub!\n", iface, hwndTab, hwndMDI, dwReserved);
+ FIXME("iface %p, hwndTab %p, hwndMDI %p, dwReserved %lx stub!\n", iface, hwndTab, hwndMDI, dwReserved);
return E_NOTIMPL;
}
More information about the wine-devel
mailing list