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
2afb8633
Commit
2afb8633
authored
Aug 06, 2019
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 07, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winecrt0: Add __delayLoadHelper2.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d0bf94bf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
6 deletions
+20
-6
delay_load.c
dlls/winecrt0/delay_load.c
+20
-6
No files found.
dlls/winecrt0/delay_load.c
View file @
2afb8633
...
...
@@ -18,13 +18,27 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#if 0
#pragma makedep unix
#endif
#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "delayloadhandler.h"
void
*
WINAPI
ResolveDelayLoadedAPI
(
void
*
base
,
const
IMAGE_DELAYLOAD_DESCRIPTOR
*
desc
,
PDELAYLOAD_FAILURE_DLL_CALLBACK
dllhook
,
PDELAYLOAD_FAILURE_SYSTEM_ROUTINE
syshook
,
IMAGE_THUNK_DATA
*
addr
,
ULONG
flags
);
void
*
WINAPI
DelayLoadFailureHook
(
LPCSTR
name
,
LPCSTR
function
);
#ifdef _WIN32
extern
IMAGE_DOS_HEADER
__ImageBase
;
FARPROC
WINAPI
__delayLoadHelper2
(
const
IMAGE_DELAYLOAD_DESCRIPTOR
*
descr
,
IMAGE_THUNK_DATA
*
addr
)
{
return
ResolveDelayLoadedAPI
(
&
__ImageBase
,
descr
,
NULL
,
DelayLoadFailureHook
,
addr
,
0
);
}
#else
/* _WIN32 */
struct
ImgDelayDescr
{
...
...
@@ -40,8 +54,6 @@ struct ImgDelayDescr
extern
struct
ImgDelayDescr
__wine_spec_delay_imports
[];
extern
FARPROC
WINAPI
DelayLoadFailureHook
(
LPCSTR
name
,
LPCSTR
function
);
FARPROC
WINAPI
DECLSPEC_HIDDEN
__wine_spec_delay_load
(
unsigned
int
id
)
{
struct
ImgDelayDescr
*
descr
=
__wine_spec_delay_imports
+
HIWORD
(
id
);
...
...
@@ -65,3 +77,5 @@ static void free_delay_imports(void)
if
(
*
descr
->
phmod
)
FreeLibrary
(
*
descr
->
phmod
);
}
#endif
#endif
/* _WIN32 */
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