Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
92000a91
Commit
92000a91
authored
May 18, 2005
by
Raphael Junqueira
Committed by
Alexandre Julliard
May 18, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix open_pdb_file (used for locate/open pdbs):
- pdb_match heuristic now only stop when "first file" exists - SymFindFileInPath now fill output buffer with a valid value on success.
parent
54160222
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
3 deletions
+13
-3
msc.c
dlls/dbghelp/msc.c
+9
-2
path.c
dlls/dbghelp/path.c
+4
-1
No files found.
dlls/dbghelp/msc.c
View file @
92000a91
...
...
@@ -1763,8 +1763,14 @@ static void pdb_convert_symbol_file(const PDB_SYMBOLS* symbols,
static
BOOL
CALLBACK
pdb_match
(
char
*
file
,
void
*
user
)
{
/* accept first file */
return
FALSE
;
/* accept first file that exists */
HANDLE
h
=
CreateFileA
(
file
,
GENERIC_READ
,
FILE_SHARE_READ
,
NULL
,
OPEN_EXISTING
,
FILE_ATTRIBUTE_NORMAL
,
NULL
);
TRACE
(
"match with %s returns %x
\n
"
,
file
,
h
);
if
(
INVALID_HANDLE_VALUE
!=
h
)
{
CloseHandle
(
h
);
return
FALSE
;
}
return
TRUE
;
}
static
HANDLE
open_pdb_file
(
const
struct
process
*
pcs
,
const
char
*
filename
)
...
...
@@ -1781,6 +1787,7 @@ static HANDLE open_pdb_file(const struct process* pcs, const char* filename)
{
h
=
CreateFileA
(
dbg_file_path
,
GENERIC_READ
,
FILE_SHARE_READ
,
NULL
,
OPEN_EXISTING
,
FILE_ATTRIBUTE_NORMAL
,
NULL
);
TRACE
(
"with %s returns %x
\n
"
,
dbg_file_path
,
h
);
}
return
(
h
==
INVALID_HANDLE_VALUE
)
?
NULL
:
h
;
}
...
...
dlls/dbghelp/path.c
View file @
92000a91
...
...
@@ -342,7 +342,10 @@ BOOL WINAPI SymFindFileInPath(HANDLE hProcess, LPSTR searchPath, LPSTR full_path
strcpy
(
tmp
,
searchPath
);
searchPath
=
NULL
;
}
if
(
do_search
(
filename
,
tmp
,
FALSE
,
sffip_cb
,
&
s
))
return
TRUE
;
if
(
do_search
(
filename
,
tmp
,
FALSE
,
sffip_cb
,
&
s
))
{
strcpy
(
buffer
,
tmp
);
return
TRUE
;
}
}
return
FALSE
;
}
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