Dmitry Timoshkov : gdi32: Also print a readable table name in the failure notice.

Alexandre Julliard julliard at wine.codeweavers.com
Thu Aug 2 06:23:14 CDT 2007


Module: wine
Branch: master
Commit: 2f71832ac9c5be0929fe0a1e4f6eb6f7905aa0e7
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=2f71832ac9c5be0929fe0a1e4f6eb6f7905aa0e7

Author: Dmitry Timoshkov <dmitry at codeweavers.com>
Date:   Thu Aug  2 13:47:57 2007 +0900

gdi32: Also print a readable table name in the failure notice.

---

 dlls/gdi32/freetype.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/dlls/gdi32/freetype.c b/dlls/gdi32/freetype.c
index 8615fb7..50e570c 100644
--- a/dlls/gdi32/freetype.c
+++ b/dlls/gdi32/freetype.c
@@ -4435,7 +4435,10 @@ DWORD WineEngGetFontData(GdiFont *font, DWORD table, DWORD offset, LPVOID buf,
     }
 #endif
     if(err) {
-        TRACE("Can't find table %08x.\n", table);
+        TRACE("Can't find table %c%c%c%c\n",
+              /* bytes were reversed */
+              HIBYTE(HIWORD(table)), LOBYTE(HIWORD(table)),
+              HIBYTE(LOWORD(table)), LOBYTE(LOWORD(table)));
 	return GDI_ERROR;
     }
     return len;




More information about the wine-cvs mailing list