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
180127dd
Commit
180127dd
authored
Feb 21, 2007
by
Eric Pouech
Committed by
Alexandre Julliard
Feb 22, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: Get rid of temporary module_get_type_by_nameA.
parent
2f0ed90c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
45 deletions
+0
-45
dbghelp_private.h
dlls/dbghelp/dbghelp_private.h
+0
-2
module.c
dlls/dbghelp/module.c
+0
-43
No files found.
dlls/dbghelp/dbghelp_private.h
View file @
180127dd
...
...
@@ -456,8 +456,6 @@ extern struct module*
const
struct
module
*
inner
);
extern
enum
module_type
module_get_type_by_name
(
const
WCHAR
*
name
);
extern
enum
module_type
module_get_type_by_nameA
(
const
char
*
name
);
extern
void
module_reset_debug_info
(
struct
module
*
module
);
extern
BOOL
module_remove
(
struct
process
*
pcs
,
struct
module
*
module
);
...
...
dlls/dbghelp/module.c
View file @
180127dd
...
...
@@ -403,36 +403,6 @@ enum module_type module_get_type_by_name(const WCHAR* name)
return
DMT_PE
;
}
/******************************************************************
* module_get_type_by_nameA
*
* Guesses a filename type from its extension
*/
enum
module_type
module_get_type_by_nameA
(
const
char
*
name
)
{
const
char
*
ptr
;
int
len
=
strlen
(
name
);
/* check for terminating .so or .so.[digit] */
ptr
=
strrchr
(
name
,
'.'
);
if
(
ptr
)
{
if
(
!
strcmp
(
ptr
,
".so"
)
||
(
isdigit
(
ptr
[
1
])
&&
!
ptr
[
2
]
&&
ptr
>=
name
+
3
&&
!
memcmp
(
ptr
-
3
,
".so"
,
3
)))
return
DMT_ELF
;
else
if
(
!
strcasecmp
(
ptr
,
".pdb"
))
return
DMT_PDB
;
}
/* wine-[kp]thread is also an ELF module */
else
if
(((
len
>
12
&&
name
[
len
-
13
]
==
'/'
)
||
len
==
12
)
&&
(
!
strcasecmp
(
name
+
len
-
12
,
"wine-pthread"
)
||
!
strcasecmp
(
name
+
len
-
12
,
"wine-kthread"
)))
{
return
DMT_ELF
;
}
return
DMT_PE
;
}
/***********************************************************************
* SymLoadModule (DBGHELP.@)
*/
...
...
@@ -489,8 +459,6 @@ DWORD64 WINAPI SymLoadModuleExW(HANDLE hProcess, HANDLE hFile, PCWSTR wImageNam
{
struct
process
*
pcs
;
struct
module
*
module
=
NULL
;
char
ImageName
[
MAX_PATH
],
amodname
[
MAX_PATH
],
*
ModuleName
;
TRACE
(
"(%p %p %s %s %s %08x %p %08x)
\n
"
,
hProcess
,
hFile
,
debugstr_w
(
wImageName
),
debugstr_w
(
wModuleName
),
...
...
@@ -505,8 +473,6 @@ DWORD64 WINAPI SymLoadModuleExW(HANDLE hProcess, HANDLE hFile, PCWSTR wImageNam
if
(
Flags
&
SLMFLAG_VIRTUAL
)
{
WideCharToMultiByte
(
CP_ACP
,
0
,
wImageName
,
-
1
,
ImageName
,
MAX_PATH
,
NULL
,
NULL
);
module
=
module_new
(
pcs
,
wImageName
,
module_get_type_by_name
(
wImageName
),
TRUE
,
(
DWORD
)
BaseOfDll
,
SizeOfDll
,
0
,
0
);
if
(
!
module
)
return
FALSE
;
...
...
@@ -524,15 +490,6 @@ DWORD64 WINAPI SymLoadModuleExW(HANDLE hProcess, HANDLE hFile, PCWSTR wImageNam
/* this is a Wine extension to the API just to redo the synchronisation */
if
(
!
wImageName
&&
!
hFile
)
return
0
;
WideCharToMultiByte
(
CP_ACP
,
0
,
wImageName
,
-
1
,
ImageName
,
MAX_PATH
,
NULL
,
NULL
);
if
(
wModuleName
)
WideCharToMultiByte
(
CP_ACP
,
0
,
wModuleName
,
-
1
,
ModuleName
=
amodname
,
MAX_PATH
,
NULL
,
NULL
);
else
ModuleName
=
NULL
;
if
(
module_is_elf_container_loaded
(
pcs
,
wImageName
,
wModuleName
))
{
/* force the loading of DLL as builtin */
...
...
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