- Replace incorrect casts and comparsions by using the HIWORD macro so we get the correct debug info.

svn path=/trunk/; revision=10271
This commit is contained in:
Filip Navara 2004-07-24 01:28:01 +00:00
parent 05f0512081
commit e99d2b956a

View file

@ -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, "<guid-0x%04x>", (WORD)(DWORD)(id));
} else {