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
cf8594f0
Commit
cf8594f0
authored
Nov 02, 2005
by
Robert Shearman
Committed by
Alexandre Julliard
Nov 02, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make LdrAccessResource call an internal function to satisfy Shrinker.
parent
f2686d46
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
4 deletions
+31
-4
resource.c
dlls/ntdll/resource.c
+31
-4
No files found.
dlls/ntdll/resource.c
View file @
cf8594f0
...
...
@@ -318,11 +318,14 @@ NTSTATUS WINAPI LdrFindResource_U( HMODULE hmod, const LDR_RESOURCE_INFO *info,
}
/**********************************************************************
* LdrAccessResource (NTDLL.@)
*/
NTSTATUS
WINAPI
LdrAccessResource
(
HMODULE
hmod
,
const
IMAGE_RESOURCE_DATA_ENTRY
*
entry
,
/* don't penalize other platforms stuff needed on i386 for compatibility */
#ifdef __i386__
NTSTATUS
WINAPI
access_resource
(
HMODULE
hmod
,
const
IMAGE_RESOURCE_DATA_ENTRY
*
entry
,
void
**
ptr
,
ULONG
*
size
)
#else
static
inline
NTSTATUS
access_resource
(
HMODULE
hmod
,
const
IMAGE_RESOURCE_DATA_ENTRY
*
entry
,
void
**
ptr
,
ULONG
*
size
)
#endif
{
NTSTATUS
status
;
...
...
@@ -355,6 +358,30 @@ NTSTATUS WINAPI LdrAccessResource( HMODULE hmod, const IMAGE_RESOURCE_DATA_ENTRY
return
status
;
}
/**********************************************************************
* LdrAccessResource (NTDLL.@)
*/
#ifdef __i386__
/* Shrinker depends on the "call access_resource" instruction being there */
__ASM_GLOBAL_FUNC
(
LdrAccessResource
,
"pushl %ebp
\n
"
"movl %esp, %ebp
\n
"
"pushl 24(%ebp)
\n
"
"pushl 20(%ebp)
\n
"
"pushl 16(%ebp)
\n
"
"pushl 12(%ebp)
\n
"
"pushl 8(%ebp)
\n
"
"call access_resource
\n
"
"leave
\n
"
"ret
\n
"
);
#else
NTSTATUS
WINAPI
LdrAccessResource
(
HMODULE
hmod
,
const
IMAGE_RESOURCE_DATA_ENTRY
*
entry
,
void
**
ptr
,
ULONG
*
size
)
{
return
access_resource
(
hmod
,
entry
,
ptr
,
size
);
}
#endif
/**********************************************************************
* RtlFindMessage (NTDLL.@)
...
...
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