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
9650db49
Commit
9650db49
authored
Aug 19, 2003
by
Christian Costa
Committed by
Alexandre Julliard
Aug 19, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allocate space to contain the IMAGE_NT_HEADERS structure (ImageLoad
function). Add some more traces.
parent
3db30e37
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
access.c
dlls/imagehlp/access.c
+15
-2
No files found.
dlls/imagehlp/access.c
View file @
9650db49
...
...
@@ -123,8 +123,14 @@ PVOID WINAPI ImageDirectoryEntryToData(
*/
PLOADED_IMAGE
WINAPI
ImageLoad
(
LPSTR
DllName
,
LPSTR
DllPath
)
{
PLOADED_IMAGE
pLoadedImage
=
HeapAlloc
(
IMAGEHLP_hHeap
,
0
,
sizeof
(
LOADED_IMAGE
));
PLOADED_IMAGE
pLoadedImage
;
FIXME
(
"(%s, %s): stub
\n
"
,
DllName
,
DllPath
);
pLoadedImage
=
HeapAlloc
(
IMAGEHLP_hHeap
,
0
,
sizeof
(
LOADED_IMAGE
));
if
(
pLoadedImage
)
pLoadedImage
->
FileHeader
=
HeapAlloc
(
IMAGEHLP_hHeap
,
0
,
sizeof
(
IMAGE_NT_HEADERS
));
return
pLoadedImage
;
}
...
...
@@ -133,6 +139,7 @@ PLOADED_IMAGE WINAPI ImageLoad(LPSTR DllName, LPSTR DllPath)
*/
PIMAGE_NT_HEADERS
WINAPI
ImageNtHeader
(
PVOID
Base
)
{
TRACE
(
"(%p)
\n
"
,
Base
);
return
(
PIMAGE_NT_HEADERS
)
((
LPBYTE
)
Base
+
((
PIMAGE_DOS_HEADER
)
Base
)
->
e_lfanew
);
}
...
...
@@ -168,6 +175,9 @@ PVOID WINAPI ImageRvaToVa(
BOOL
WINAPI
ImageUnload
(
PLOADED_IMAGE
pLoadedImage
)
{
LIST_ENTRY
*
pCurrent
,
*
pFind
;
TRACE
(
"(%p)
\n
"
,
pLoadedImage
);
if
(
!
IMAGEHLP_pFirstLoadedImage
||
!
pLoadedImage
)
{
/* No image loaded or null pointer */
...
...
@@ -215,6 +225,9 @@ BOOL WINAPI MapAndLoad(
HMODULE
hModule
=
NULL
;
PIMAGE_NT_HEADERS
pNtHeader
=
NULL
;
TRACE
(
"(%s, %s, %p, %d, %d)
\n
"
,
pszImageName
,
pszDllPath
,
pLoadedImage
,
bDotDll
,
bReadOnly
);
/* PathCombine(&szFileName, pszDllPath, pszImageName); */
/* PathRenameExtension(&szFileName, bDotDll?:"dll":"exe"); */
...
...
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