Commit 739c318f authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

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

parent 279d1174
......@@ -220,7 +220,7 @@ BOOL MAIN_ParseDebugOptions(char *options)
for (i=0; i<DEBUG_CHANNEL_COUNT; i++)
for(j=0; j<DEBUG_CLASS_COUNT; j++)
if(cls == -1 || cls == j)
__SET_DEBUGGING( i, j, (*options=='+') );
__SET_DEBUGGING( j, i, (*options=='+') );
}
else if (!lstrncmpiA(options+1, "relay=", 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))){
for(j=0; j<DEBUG_CLASS_COUNT; j++)
if(cls == -1 || cls == j)
__SET_DEBUGGING( i, j, 1 );
__SET_DEBUGGING( j, i, 1 );
break;
}
/* 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))){
for(j=0; j<DEBUG_CLASS_COUNT; j++)
if(cls == -1 || cls == j)
__SET_DEBUGGING( i, j, (*options=='+') );
__SET_DEBUGGING( j, i, (*options=='+') );
break;
}
if (i==DEBUG_CHANNEL_COUNT)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment