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
0f5538b9
Commit
0f5538b9
authored
Sep 26, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Move delay-load functions to kernelbase.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
950773dc
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
20 deletions
+21
-20
kernel32.spec
dlls/kernel32/kernel32.spec
+1
-1
module.c
dlls/kernel32/module.c
+0
-17
kernelbase.spec
dlls/kernelbase/kernelbase.spec
+2
-2
loader.c
dlls/kernelbase/loader.c
+18
-0
No files found.
dlls/kernel32/kernel32.spec
View file @
0f5538b9
...
...
@@ -356,7 +356,7 @@
@ stdcall DecodeSystemPointer(ptr) ntdll.RtlDecodeSystemPointer
@ stdcall DefineDosDeviceA(long str str)
@ stdcall DefineDosDeviceW(long wstr wstr)
@ stdcall DelayLoadFailureHook(str str)
@ stdcall
-import
DelayLoadFailureHook(str str)
@ stdcall DeleteAtom(long)
# @ stub DeleteBoundaryDescriptor
@ stdcall DeleteCriticalSection(ptr) ntdll.RtlDeleteCriticalSection
...
...
dlls/kernel32/module.c
View file @
0f5538b9
...
...
@@ -1018,23 +1018,6 @@ FARPROC WINAPI GetProcAddress( HMODULE hModule, LPCSTR function )
return
get_proc_address_wrapper
(
hModule
,
function
);
}
/***********************************************************************
* DelayLoadFailureHook (KERNEL32.@)
*/
FARPROC
WINAPI
DelayLoadFailureHook
(
LPCSTR
name
,
LPCSTR
function
)
{
ULONG_PTR
args
[
2
];
if
((
ULONG_PTR
)
function
>>
16
)
ERR
(
"failed to delay load %s.%s
\n
"
,
name
,
function
);
else
ERR
(
"failed to delay load %s.%u
\n
"
,
name
,
LOWORD
(
function
)
);
args
[
0
]
=
(
ULONG_PTR
)
name
;
args
[
1
]
=
(
ULONG_PTR
)
function
;
RaiseException
(
EXCEPTION_WINE_STUB
,
EH_NONCONTINUABLE
,
2
,
args
);
return
NULL
;
}
typedef
struct
_PEB32
{
BOOLEAN
InheritedAddressSpace
;
...
...
dlls/kernelbase/kernelbase.spec
View file @
0f5538b9
...
...
@@ -244,7 +244,7 @@
# @ stub DecodeRemotePointer
@ stdcall DecodeSystemPointer(ptr) ntdll.RtlDecodeSystemPointer
@ stdcall DefineDosDeviceW(long wstr wstr) kernel32.DefineDosDeviceW
@ stdcall DelayLoadFailureHook(str str)
kernel32.DelayLoadFailureHook
@ stdcall DelayLoadFailureHook(str str)
# @ stub DelayLoadFailureHookLookup
@ stdcall DeleteAce(ptr long)
# @ stub DeleteBoundaryDescriptor
...
...
@@ -1344,7 +1344,7 @@
@ stdcall ResetEvent(long)
# @ stub ResetState
@ stdcall ResetWriteWatch(ptr long)
@ stdcall
ResolveDelayLoadedAPI(ptr ptr ptr ptr ptr long) kernel32.
ResolveDelayLoadedAPI
@ stdcall
-import ResolveDelayLoadedAPI(ptr ptr ptr ptr ptr long) Ldr
ResolveDelayLoadedAPI
# @ stub ResolveDelayLoadsFromDll
@ stdcall ResolveLocaleName(wstr ptr long)
@ stdcall RestoreLastError(long) ntdll.RtlRestoreLastWin32Error
...
...
dlls/kernelbase/loader.c
View file @
0f5538b9
...
...
@@ -42,6 +42,24 @@ WINE_DEFAULT_DEBUG_CHANNEL(module);
***********************************************************************/
/***********************************************************************
* DelayLoadFailureHook (kernelbase.@)
*/
FARPROC
WINAPI
DECLSPEC_HOTPATCH
DelayLoadFailureHook
(
LPCSTR
name
,
LPCSTR
function
)
{
ULONG_PTR
args
[
2
];
if
((
ULONG_PTR
)
function
>>
16
)
ERR
(
"failed to delay load %s.%s
\n
"
,
name
,
function
);
else
ERR
(
"failed to delay load %s.%u
\n
"
,
name
,
LOWORD
(
function
)
);
args
[
0
]
=
(
ULONG_PTR
)
name
;
args
[
1
]
=
(
ULONG_PTR
)
function
;
RaiseException
(
EXCEPTION_WINE_STUB
,
EH_NONCONTINUABLE
,
2
,
args
);
return
NULL
;
}
/****************************************************************************
* DisableThreadLibraryCalls (kernelbase.@)
*/
...
...
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