Module: wine Branch: master Commit: ae0ddb37c231e981875762392d28ed28d7bf8006 URL: http://source.winehq.org/git/wine.git/?a=commit;h=ae0ddb37c231e981875762392d...
Author: Gerald Pfeifer gerald@pfeifer.com Date: Sun Jun 7 11:20:54 2009 +0200
user32: Fix logic condition in SPY_DumpStructure().
---
dlls/user32/spy.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dlls/user32/spy.c b/dlls/user32/spy.c index 8cd926b..c2bd60b 100644 --- a/dlls/user32/spy.c +++ b/dlls/user32/spy.c @@ -2489,7 +2489,8 @@ static void SPY_DumpStructure(const SPY_INSTANCE *sp_e, BOOL enter) SetLastError(save_error); if (strcmpW(TOOLBARCLASSNAMEW, from_class) == 0) dumplen = sizeof(NMTBCUSTOMDRAW)-sizeof(NMHDR); - } else if ((pnmh->code >= HDN_ITEMCHANGINGA) && (pnmh->code <= HDN_ENDDRAG)) { + } else if ( pnmh->code >= HDN_ENDDRAG + && pnmh->code <= HDN_ITEMCHANGINGA ) { dumplen = sizeof(NMHEADERA)-sizeof(NMHDR); } if (dumplen > 0) {