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
836b682e
Commit
836b682e
authored
Nov 09, 2013
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: Remove a useless DllMain, msvcrt can't be unloaded.
parent
7f8412f2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 addition
and
20 deletions
+1
-20
dbghelp.c
dlls/dbghelp/dbghelp.c
+0
-19
dbghelp_private.h
dlls/dbghelp/dbghelp_private.h
+0
-1
symbol.c
dlls/dbghelp/symbol.c
+1
-0
No files found.
dlls/dbghelp/dbghelp.c
View file @
836b682e
...
...
@@ -65,25 +65,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(dbghelp);
*/
unsigned
dbghelp_options
=
SYMOPT_UNDNAME
;
HANDLE
hMsvcrt
=
NULL
;
/***********************************************************************
* DllMain (DEBUGHLP.@)
*/
BOOL
WINAPI
DllMain
(
HINSTANCE
hinstDLL
,
DWORD
fdwReason
,
LPVOID
lpvReserved
)
{
switch
(
fdwReason
)
{
case
DLL_PROCESS_ATTACH
:
break
;
case
DLL_PROCESS_DETACH
:
if
(
hMsvcrt
)
FreeLibrary
(
hMsvcrt
);
break
;
case
DLL_THREAD_ATTACH
:
break
;
case
DLL_THREAD_DETACH
:
break
;
default:
break
;
}
return
TRUE
;
}
static
struct
process
*
process_first
/* = NULL */
;
...
...
dlls/dbghelp/dbghelp_private.h
View file @
836b682e
...
...
@@ -545,7 +545,6 @@ extern struct cpu* dbghelp_current_cpu DECLSPEC_HIDDEN;
/* dbghelp.c */
extern
struct
process
*
process_find_by_handle
(
HANDLE
hProcess
)
DECLSPEC_HIDDEN
;
extern
HANDLE
hMsvcrt
DECLSPEC_HIDDEN
;
extern
BOOL
validate_addr64
(
DWORD64
addr
)
DECLSPEC_HIDDEN
;
extern
BOOL
pcs_callback
(
const
struct
process
*
pcs
,
ULONG
action
,
void
*
data
)
DECLSPEC_HIDDEN
;
extern
void
*
fetch_buffer
(
struct
process
*
pcs
,
unsigned
size
)
DECLSPEC_HIDDEN
;
...
...
dlls/dbghelp/symbol.c
View file @
836b682e
...
...
@@ -1759,6 +1759,7 @@ DWORD WINAPI UnDecorateSymbolName(PCSTR DecoratedName, PSTR UnDecoratedName,
DWORD
UndecoratedLength
,
DWORD
Flags
)
{
/* undocumented from msvcrt */
static
HANDLE
hMsvcrt
;
static
char
*
(
CDECL
*
p_undname
)(
char
*
,
const
char
*
,
int
,
void
*
(
CDECL
*
)(
size_t
),
void
(
CDECL
*
)(
void
*
),
unsigned
short
);
static
const
WCHAR
szMsvcrt
[]
=
{
'm'
,
's'
,
'v'
,
'c'
,
'r'
,
't'
,
'.'
,
'd'
,
'l'
,
'l'
,
0
};
...
...
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