Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Felix Münchhalfen
wine
Commits
76fc4175
Commit
76fc4175
authored
21 years ago
by
Marcus R. Brown
Committed by
Alexandre Julliard
21 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Replace various routines with a forward to ntdll.
parent
7f7cde0e
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
dlls/imagehlp/Makefile.in
+1
-1
1 addition, 1 deletion
dlls/imagehlp/Makefile.in
dlls/imagehlp/access.c
+3
-49
3 additions, 49 deletions
dlls/imagehlp/access.c
dlls/imagehlp/imagehlp.spec
+4
-4
4 additions, 4 deletions
dlls/imagehlp/imagehlp.spec
dlls/imagehlp/modify.c
+3
-1
3 additions, 1 deletion
dlls/imagehlp/modify.c
with
11 additions
and
55 deletions
dlls/imagehlp/Makefile.in
+
1
−
1
View file @
76fc4175
...
...
@@ -4,7 +4,7 @@ TOPOBJDIR = ../..
SRCDIR
=
@srcdir@
VPATH
=
@srcdir@
MODULE
=
imagehlp.dll
IMPORTS
=
kernel32
IMPORTS
=
kernel32
ntdll
C_SRCS
=
\
access.c
\
...
...
This diff is collapsed.
Click to expand it.
dlls/imagehlp/access.c
+
3
−
49
View file @
76fc4175
...
...
@@ -23,6 +23,8 @@
#include
"windef.h"
#include
"winbase.h"
#include
"winnt.h"
#include
"winreg.h"
#include
"winternl.h"
#include
"winerror.h"
#include
"wine/debug.h"
#include
"imagehlp.h"
...
...
@@ -106,19 +108,6 @@ DWORD WINAPI GetImageUnusedHeaderBytes(
return
0
;
}
/***********************************************************************
* ImageDirectoryEntryToData (IMAGEHLP.@)
*/
PVOID
WINAPI
ImageDirectoryEntryToData
(
PVOID
Base
,
BOOLEAN
MappedAsImage
,
USHORT
DirectoryEntry
,
PULONG
Size
)
{
FIXME
(
"(%p, %d, %hd, %p): stub
\n
"
,
Base
,
MappedAsImage
,
DirectoryEntry
,
Size
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
NULL
;
}
/***********************************************************************
* ImageLoad (IMAGEHLP.@)
*/
...
...
@@ -135,41 +124,6 @@ PLOADED_IMAGE WINAPI ImageLoad(LPSTR DllName, LPSTR DllPath)
return
pLoadedImage
;
}
/***********************************************************************
* ImageNtHeader (IMAGEHLP.@)
*/
PIMAGE_NT_HEADERS
WINAPI
ImageNtHeader
(
PVOID
Base
)
{
TRACE
(
"(%p)
\n
"
,
Base
);
return
(
PIMAGE_NT_HEADERS
)
((
LPBYTE
)
Base
+
((
PIMAGE_DOS_HEADER
)
Base
)
->
e_lfanew
);
}
/***********************************************************************
* ImageRvaToSection (IMAGEHLP.@)
*/
PIMAGE_SECTION_HEADER
WINAPI
ImageRvaToSection
(
PIMAGE_NT_HEADERS
NtHeaders
,
PVOID
Base
,
ULONG
Rva
)
{
FIXME
(
"(%p, %p, %ld): stub
\n
"
,
NtHeaders
,
Base
,
Rva
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
NULL
;
}
/***********************************************************************
* ImageRvaToVa (IMAGEHLP.@)
*/
PVOID
WINAPI
ImageRvaToVa
(
PIMAGE_NT_HEADERS
NtHeaders
,
PVOID
Base
,
ULONG
Rva
,
PIMAGE_SECTION_HEADER
*
LastRvaSection
)
{
FIXME
(
"(%p, %p, %ld, %p): stub
\n
"
,
NtHeaders
,
Base
,
Rva
,
LastRvaSection
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
NULL
;
}
/***********************************************************************
* ImageUnload (IMAGEHLP.@)
*/
...
...
@@ -268,7 +222,7 @@ BOOL WINAPI MapAndLoad(
IMAGEHLP_hHeap
,
0
,
sizeof
(
LOADED_IMAGE
)
);
pNtHeader
=
ImageNtHeader
(
(
PVOID
)
hModule
);
pNtHeader
=
Rtl
ImageNtHeader
(
hModule
);
pLoadedImage
->
ModuleName
=
HeapAlloc
(
IMAGEHLP_hHeap
,
0
,
strlen
(
pszDllPath
)
+
1
);
/* FIXME: Correct? */
strcpy
(
pLoadedImage
->
ModuleName
,
pszDllPath
);
...
...
This diff is collapsed.
Click to expand it.
dlls/imagehlp/imagehlp.spec
+
4
−
4
View file @
76fc4175
...
...
@@ -8,16 +8,16 @@
@ stdcall GetImageUnusedHeaderBytes(ptr ptr)
@ stdcall GetTimestampForLoadedLibrary(long)
@ stdcall ImageAddCertificate(long ptr ptr)
@ stdcall ImageDirectoryEntryToData(ptr long long ptr)
@ stdcall ImageDirectoryEntryToData(ptr long long ptr)
ntdll.RtlImageDirectoryEntryToData
@ stdcall ImageEnumerateCertificates(long long ptr ptr long)
@ stdcall ImageGetCertificateData(long long ptr ptr)
@ stdcall ImageGetCertificateHeader(long long ptr)
@ stdcall ImageGetDigestStream(long long ptr long)
@ stdcall ImageLoad(str str)
@ stdcall ImageNtHeader(ptr)
@ stdcall ImageNtHeader(ptr)
ntdll.RtlImageNtHeader
@ stdcall ImageRemoveCertificate(long long)
@ stdcall ImageRvaToSection(ptr ptr long)
@ stdcall ImageRvaToVa(ptr ptr long ptr)
@ stdcall ImageRvaToSection(ptr ptr long)
ntdll.RtlImageRvaToSection
@ stdcall ImageRvaToVa(ptr ptr long ptr)
ntdll.RtlImageRvaToVa
@ stdcall ImageUnload(ptr)
@ stdcall ImagehlpApiVersion()
@ stdcall ImagehlpApiVersionEx(ptr)
...
...
This diff is collapsed.
Click to expand it.
dlls/imagehlp/modify.c
+
3
−
1
View file @
76fc4175
...
...
@@ -22,6 +22,8 @@
#include
"windef.h"
#include
"winbase.h"
#include
"winreg.h"
#include
"winternl.h"
#include
"winerror.h"
#include
"wine/debug.h"
#include
"imagehlp.h"
...
...
@@ -101,7 +103,7 @@ PIMAGE_NT_HEADERS WINAPI CheckSumMappedFile(
BaseAddress
,
(
FileLength
+
1
)
/
sizeof
(
WORD
));
Header
=
ImageNtHeader
(
BaseAddress
);
Header
=
Rtl
ImageNtHeader
(
BaseAddress
);
HdrSum
=
Header
->
OptionalHeader
.
CheckSum
;
/* Subtract image checksum from calculated checksum. */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment