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
e4b2b82e
Commit
e4b2b82e
authored
Mar 25, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
imagehlp: Get rid of the custom heap.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
55a62c73
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
25 deletions
+3
-25
access.c
dlls/imagehlp/access.c
+3
-4
imagehlp_main.c
dlls/imagehlp/imagehlp_main.c
+0
-21
No files found.
dlls/imagehlp/access.c
View file @
e4b2b82e
...
...
@@ -35,7 +35,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(imagehlp);
*/
static
LIST_ENTRY
image_list
=
{
&
image_list
,
&
image_list
};
DECLSPEC_HIDDEN
extern
HANDLE
IMAGEHLP_hHeap
;
/***********************************************************************
* GetImageConfigInformation (IMAGEHLP.@)
...
...
@@ -74,12 +73,12 @@ PLOADED_IMAGE WINAPI ImageLoad(PCSTR dll_name, PCSTR dll_path)
TRACE
(
"(%s, %s)
\n
"
,
dll_name
,
dll_path
);
image
=
HeapAlloc
(
IMAGEHLP_hHeap
,
0
,
sizeof
(
*
image
));
image
=
HeapAlloc
(
GetProcessHeap
()
,
0
,
sizeof
(
*
image
));
if
(
!
image
)
return
NULL
;
if
(
!
MapAndLoad
(
dll_name
,
dll_path
,
image
,
TRUE
,
TRUE
))
{
HeapFree
(
IMAGEHLP_hHeap
,
0
,
image
);
HeapFree
(
GetProcessHeap
()
,
0
,
image
);
return
NULL
;
}
...
...
@@ -121,7 +120,7 @@ BOOL WINAPI ImageUnload(PLOADED_IMAGE loaded_image)
entry
->
Flink
->
Blink
=
entry
->
Blink
;
UnMapAndLoad
(
loaded_image
);
HeapFree
(
IMAGEHLP_hHeap
,
0
,
loaded_image
);
HeapFree
(
GetProcessHeap
()
,
0
,
loaded_image
);
return
TRUE
;
}
...
...
dlls/imagehlp/imagehlp_main.c
View file @
e4b2b82e
...
...
@@ -25,27 +25,6 @@
#include "imagehlp.h"
#include "wine/debug.h"
/**********************************************************************/
DECLSPEC_HIDDEN
HANDLE
IMAGEHLP_hHeap
=
NULL
;
/***********************************************************************
* DllMain (IMAGEHLP.init)
*/
BOOL
WINAPI
DllMain
(
HINSTANCE
hinstDLL
,
DWORD
fdwReason
,
LPVOID
lpvReserved
)
{
switch
(
fdwReason
)
{
case
DLL_PROCESS_ATTACH
:
DisableThreadLibraryCalls
(
hinstDLL
);
IMAGEHLP_hHeap
=
HeapCreate
(
0
,
0x10000
,
0
);
break
;
case
DLL_PROCESS_DETACH
:
if
(
lpvReserved
)
break
;
HeapDestroy
(
IMAGEHLP_hHeap
);
break
;
}
return
TRUE
;
}
/***********************************************************************
* MarkImageAsRunFromSwap (IMAGEHLP.@)
...
...
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