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
2f8c51f5
Commit
2f8c51f5
authored
Sep 06, 2006
by
Andrew Talbot
Committed by
Alexandre Julliard
Sep 08, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: Cast-qual warnings fix.
parent
06e7d91b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
7 deletions
+4
-7
module.c
dlls/dbghelp/module.c
+1
-2
pe_module.c
dlls/dbghelp/pe_module.c
+2
-4
symbol.c
dlls/dbghelp/symbol.c
+1
-1
No files found.
dlls/dbghelp/module.c
View file @
2f8c51f5
...
@@ -473,8 +473,7 @@ DWORD64 WINAPI SymLoadModuleEx(HANDLE hProcess, HANDLE hFile, PCSTR ImageName,
...
@@ -473,8 +473,7 @@ DWORD64 WINAPI SymLoadModuleEx(HANDLE hProcess, HANDLE hFile, PCSTR ImageName,
if
(
Flags
&
~
(
SLMFLAG_VIRTUAL
))
if
(
Flags
&
~
(
SLMFLAG_VIRTUAL
))
FIXME
(
"Unsupported Flags %08lx for %s
\n
"
,
Flags
,
ImageName
);
FIXME
(
"Unsupported Flags %08lx for %s
\n
"
,
Flags
,
ImageName
);
return
SymLoadModule
(
hProcess
,
hFile
,
(
char
*
)
ImageName
,
(
char
*
)
ModuleName
,
return
SymLoadModule
(
hProcess
,
hFile
,
ImageName
,
ModuleName
,
(
DWORD
)
BaseOfDll
,
DllSize
);
(
DWORD
)
BaseOfDll
,
DllSize
);
}
}
/***********************************************************************
/***********************************************************************
...
...
dlls/dbghelp/pe_module.c
View file @
2f8c51f5
...
@@ -100,9 +100,7 @@ static BOOL pe_load_dbg_file(const struct process* pcs, struct module* module,
...
@@ -100,9 +100,7 @@ static BOOL pe_load_dbg_file(const struct process* pcs, struct module* module,
WINE_TRACE
(
"Processing DBG file %s
\n
"
,
dbg_name
);
WINE_TRACE
(
"Processing DBG file %s
\n
"
,
dbg_name
);
if
(
SymFindFileInPath
(
pcs
->
handle
,
NULL
,
(
char
*
)
dbg_name
,
if
(
SymFindFileInPath
(
pcs
->
handle
,
NULL
,
dbg_name
,
NULL
,
0
,
0
,
0
,
tmp
,
dbg_match
,
NULL
)
&&
NULL
,
0
,
0
,
0
,
tmp
,
dbg_match
,
NULL
)
&&
(
hFile
=
CreateFileA
(
tmp
,
GENERIC_READ
,
FILE_SHARE_READ
,
NULL
,
(
hFile
=
CreateFileA
(
tmp
,
GENERIC_READ
,
FILE_SHARE_READ
,
NULL
,
OPEN_EXISTING
,
FILE_ATTRIBUTE_NORMAL
,
NULL
))
!=
INVALID_HANDLE_VALUE
&&
OPEN_EXISTING
,
FILE_ATTRIBUTE_NORMAL
,
NULL
))
!=
INVALID_HANDLE_VALUE
&&
((
hMap
=
CreateFileMappingA
(
hFile
,
NULL
,
PAGE_READONLY
,
0
,
0
,
NULL
))
!=
0
)
&&
((
hMap
=
CreateFileMappingA
(
hFile
,
NULL
,
PAGE_READONLY
,
0
,
0
,
NULL
))
!=
0
)
&&
...
@@ -142,7 +140,7 @@ static BOOL pe_load_dbg_file(const struct process* pcs, struct module* module,
...
@@ -142,7 +140,7 @@ static BOOL pe_load_dbg_file(const struct process* pcs, struct module* module,
else
else
WINE_ERR
(
"-Unable to peruse .DBG file %s (%s)
\n
"
,
dbg_name
,
debugstr_a
(
tmp
));
WINE_ERR
(
"-Unable to peruse .DBG file %s (%s)
\n
"
,
dbg_name
,
debugstr_a
(
tmp
));
if
(
dbg_mapping
)
UnmapViewOfFile
(
(
void
*
)
dbg_mapping
);
if
(
dbg_mapping
)
UnmapViewOfFile
(
dbg_mapping
);
if
(
hMap
)
CloseHandle
(
hMap
);
if
(
hMap
)
CloseHandle
(
hMap
);
if
(
hFile
!=
NULL
)
CloseHandle
(
hFile
);
if
(
hFile
!=
NULL
)
CloseHandle
(
hFile
);
return
ret
;
return
ret
;
...
...
dlls/dbghelp/symbol.c
View file @
2f8c51f5
...
@@ -1121,7 +1121,7 @@ BOOL WINAPI SymFromName(HANDLE hProcess, PCSTR Name, PSYMBOL_INFO Symbol)
...
@@ -1121,7 +1121,7 @@ BOOL WINAPI SymFromName(HANDLE hProcess, PCSTR Name, PSYMBOL_INFO Symbol)
memcpy
(
tmp
,
Name
,
name
-
Name
);
memcpy
(
tmp
,
Name
,
name
-
Name
);
tmp
[
name
-
Name
]
=
'\0'
;
tmp
[
name
-
Name
]
=
'\0'
;
module
=
module_find_by_name
(
pcs
,
tmp
,
DMT_UNKNOWN
);
module
=
module_find_by_name
(
pcs
,
tmp
,
DMT_UNKNOWN
);
return
find_name
(
pcs
,
module
,
(
char
*
)(
name
+
1
)
,
Symbol
);
return
find_name
(
pcs
,
module
,
name
+
1
,
Symbol
);
}
}
for
(
module
=
pcs
->
lmodules
;
module
;
module
=
module
->
next
)
for
(
module
=
pcs
->
lmodules
;
module
;
module
=
module
->
next
)
{
{
...
...
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