mirror of
https://github.com/reactos/reactos.git
synced 2025-01-02 12:32:47 +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:
parent
05f0512081
commit
e99d2b956a
1 changed files with 3 additions and 3 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue