mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-29 12:23:30 +00:00
- 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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user