From e99d2b956a209f5173efdecd74de194e47be465e Mon Sep 17 00:00:00 2001 From: Filip Navara Date: Sat, 24 Jul 2004 01:28:01 +0000 Subject: [PATCH] - Replace incorrect casts and comparsions by using the HIWORD macro so we get the correct debug info. svn path=/trunk/; revision=10271 --- reactos/lib/libwine/debug.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reactos/lib/libwine/debug.c b/reactos/lib/libwine/debug.c index e6648977144..9fb3e02ffe4 100644 --- a/reactos/lib/libwine/debug.c +++ b/reactos/lib/libwine/debug.c @@ -85,7 +85,7 @@ const char *wine_dbgstr_an(const char *src, int n) { char *dst, *res; - if (!((WORD)(DWORD)(src) >> 16)) + if (!HIWORD(src)) { if (!src) return "(null)"; res = gimme1(6); @@ -137,7 +137,7 @@ const char *wine_dbgstr_wn(const WCHAR *src, int n) { char *dst, *res; - if (!((WORD)(DWORD)(src) >> 16)) + if (!HIWORD(src)) { if (!src) return "(null)"; res = gimme1(6); @@ -190,7 +190,7 @@ const char *wine_dbgstr_guid(const GUID *id) char *str; if (!id) return "(null)"; - if (!((WORD)(DWORD)(id) >> 16)) { + if (!HIWORD(id)) { str = gimme1(12); sprintf(str, "", (WORD)(DWORD)(id)); } else {