shell32: Use wine_dbgstr_rect() to trace RECTs.

Michael Stefaniuc mstefani at redhat.de
Thu Apr 21 03:58:01 CDT 2016


Signed-off-by: Michael Stefaniuc <mstefani at redhat.de>
---
 dlls/shell32/shlmenu.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/shell32/shlmenu.c b/dlls/shell32/shlmenu.c
index 5dfdd08..694b5d1 100644
--- a/dlls/shell32/shlmenu.c
+++ b/dlls/shell32/shlmenu.c
@@ -633,7 +633,7 @@ LRESULT WINAPI FileMenu_DrawItem(
 	Shell_GetImageLists(0, &hImageList);
 	ImageList_Draw(hImageList, pMyItem->iIconIndex, lpdis->hDC, xi, yi, ILD_NORMAL);
 
-	TRACE("-- 0x%04x 0x%04x 0x%04x 0x%04x\n", TextRect.left, TextRect.top, TextRect.right, TextRect.bottom);
+        TRACE("-- %s\n", wine_dbgstr_rect(&TextRect));
 
 	SetTextColor(lpdis->hDC, clrPrevText);
 	SetBkColor(lpdis->hDC, clrPrevBkgnd);
@@ -794,8 +794,8 @@ DWORD WINAPI FileMenu_GetItemExtent (HMENU hMenu, UINT uPos)
 	FIXME("%p 0x%08x\n", hMenu, uPos);
 
 	if (GetMenuItemRect(0, hMenu, uPos, &rect))
-	{ FIXME("0x%04x 0x%04x 0x%04x 0x%04x\n",
-	  rect.right, rect.left, rect.top, rect.bottom);
+        {
+          FIXME("%s\n", wine_dbgstr_rect(&rect));
 	  return ((rect.right-rect.left)<<16) + (rect.top-rect.bottom);
 	}
 	return 0x00100010; /*FIXME*/
-- 
2.4.11



More information about the wine-patches mailing list