diff --git a/libs/wine/debug.c b/libs/wine/debug.c index cd534b8..fed5841 100644 --- a/libs/wine/debug.c +++ b/libs/wine/debug.c @@ -58,11 +58,15 @@ void __wine_dbg_toggle_block() { /* get the flags to use for a given channel, possibly setting them too in case of lazy init */ unsigned char __wine_dbg_get_channel_flags( struct __wine_debug_channel *channel ) { - if (nb_debug_options && !block_traces) + if (nb_debug_options) { + if (!block_traces) + { struct __wine_debug_channel *opt = bsearch( channel->name, debug_options, nb_debug_options, sizeof(debug_options[0]), cmp_name ); if (opt) return opt->flags; + } + else return default_flags; } /* no option for this channel */ if (channel->flags & (1 << __WINE_DBCL_INIT)) channel->flags = default_flags;