Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
0f3445d6
Commit
0f3445d6
authored
Feb 09, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: Fix handling of empty file regexp (Coverity).
parent
398b5cfe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
symbol.c
dlls/dbghelp/symbol.c
+6
-3
No files found.
dlls/dbghelp/symbol.c
View file @
0f3445d6
...
...
@@ -128,10 +128,11 @@ static BOOL compile_file_regex(regex_t* re, const char* srcfile)
char
*
mask
,
*
p
;
BOOL
ret
;
if
(
!
srcfile
||
!*
srcfile
)
return
regcomp
(
re
,
".*"
,
REG_NOSUB
);
p
=
mask
=
HeapAlloc
(
GetProcessHeap
(),
0
,
5
*
strlen
(
srcfile
)
+
4
);
*
p
++
=
'^'
;
if
(
!
srcfile
||
!*
srcfile
)
*
p
++
=
'*'
;
else
while
(
*
srcfile
)
while
(
*
srcfile
)
{
switch
(
*
srcfile
)
{
...
...
@@ -192,12 +193,14 @@ static void compile_regex(const char* str, int numchar, regex_t* re, BOOL _case)
static
BOOL
compile_file_regex
(
regex_t
*
re
,
const
char
*
srcfile
)
{
compile_regex
(
srcfile
,
-
1
,
re
,
FALSE
);
if
(
!
srcfile
||
!*
srcfile
)
re
->
str
=
NULL
;
else
compile_regex
(
srcfile
,
-
1
,
re
,
FALSE
);
return
TRUE
;
}
static
int
match_regexp
(
const
regex_t
*
re
,
const
char
*
str
)
{
if
(
!
re
->
str
)
return
1
;
if
(
re
->
icase
)
return
!
lstrcmpiA
(
re
->
str
,
str
);
return
!
strcmp
(
re
->
str
,
str
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment