diff --git a/tools/winedump/function_grep.pl b/tools/winedump/function_grep.pl index 71cd6b1f026..42183cfe0b3 100755 --- a/tools/winedump/function_grep.pl +++ b/tools/winedump/function_grep.pl @@ -92,7 +92,7 @@ foreach my $file (@files) { # remove preprocessor directives if(s/^\s*\#/\#/m) { - if(/^\#.*?\\$/m) { + if(/^\#[.\n\r]*?\\$/m) { $lookahead = 1; next; } elsif(s/^\#\s*(.*?)(\s+(.*?))?\s*$//m) {