Inverted class/channel in __(SET|GET)_DEBUGGING macros.

This commit is contained in:
Eric Pouech 1999-05-04 16:23:03 +00:00 committed by Alexandre Julliard
parent 279d1174fd
commit 739c318fff
1 changed files with 3 additions and 3 deletions

View File

@ -220,7 +220,7 @@ BOOL MAIN_ParseDebugOptions(char *options)
for (i=0; i<DEBUG_CHANNEL_COUNT; i++) for (i=0; i<DEBUG_CHANNEL_COUNT; i++)
for(j=0; j<DEBUG_CLASS_COUNT; j++) for(j=0; j<DEBUG_CLASS_COUNT; j++)
if(cls == -1 || cls == j) if(cls == -1 || cls == j)
__SET_DEBUGGING( i, j, (*options=='+') ); __SET_DEBUGGING( j, i, (*options=='+') );
} }
else if (!lstrncmpiA(options+1, "relay=", 6) || else if (!lstrncmpiA(options+1, "relay=", 6) ||
!lstrncmpiA(options+1, "snoop=", 6)) !lstrncmpiA(options+1, "snoop=", 6))
@ -232,7 +232,7 @@ BOOL MAIN_ParseDebugOptions(char *options)
if (debug_ch_name && (!lstrncmpiA(debug_ch_name[i],options+1,5))){ if (debug_ch_name && (!lstrncmpiA(debug_ch_name[i],options+1,5))){
for(j=0; j<DEBUG_CLASS_COUNT; j++) for(j=0; j<DEBUG_CLASS_COUNT; j++)
if(cls == -1 || cls == j) if(cls == -1 || cls == j)
__SET_DEBUGGING( i, j, 1 ); __SET_DEBUGGING( j, i, 1 );
break; break;
} }
/* should never happen, maybe assert(i!=DEBUG_CHANNEL_COUNT)? */ /* should never happen, maybe assert(i!=DEBUG_CHANNEL_COUNT)? */
@ -272,7 +272,7 @@ BOOL MAIN_ParseDebugOptions(char *options)
if (debug_ch_name && (!lstrncmpiA(options+1,debug_ch_name[i],l-1))){ if (debug_ch_name && (!lstrncmpiA(options+1,debug_ch_name[i],l-1))){
for(j=0; j<DEBUG_CLASS_COUNT; j++) for(j=0; j<DEBUG_CLASS_COUNT; j++)
if(cls == -1 || cls == j) if(cls == -1 || cls == j)
__SET_DEBUGGING( i, j, (*options=='+') ); __SET_DEBUGGING( j, i, (*options=='+') );
break; break;
} }
if (i==DEBUG_CHANNEL_COUNT) if (i==DEBUG_CHANNEL_COUNT)