Commit 0f5538b9 authored by Alexandre Julliard's avatar Alexandre Julliard

kernel32: Move delay-load functions to kernelbase.

parent 950773dc
...@@ -356,7 +356,7 @@ ...@@ -356,7 +356,7 @@
@ stdcall DecodeSystemPointer(ptr) ntdll.RtlDecodeSystemPointer @ stdcall DecodeSystemPointer(ptr) ntdll.RtlDecodeSystemPointer
@ stdcall DefineDosDeviceA(long str str) @ stdcall DefineDosDeviceA(long str str)
@ stdcall DefineDosDeviceW(long wstr wstr) @ stdcall DefineDosDeviceW(long wstr wstr)
@ stdcall DelayLoadFailureHook(str str) @ stdcall -import DelayLoadFailureHook(str str)
@ stdcall DeleteAtom(long) @ stdcall DeleteAtom(long)
# @ stub DeleteBoundaryDescriptor # @ stub DeleteBoundaryDescriptor
@ stdcall DeleteCriticalSection(ptr) ntdll.RtlDeleteCriticalSection @ stdcall DeleteCriticalSection(ptr) ntdll.RtlDeleteCriticalSection
......
...@@ -1018,23 +1018,6 @@ FARPROC WINAPI GetProcAddress( HMODULE hModule, LPCSTR function ) ...@@ -1018,23 +1018,6 @@ FARPROC WINAPI GetProcAddress( HMODULE hModule, LPCSTR function )
return get_proc_address_wrapper( hModule, 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 typedef struct _PEB32
{ {
BOOLEAN InheritedAddressSpace; BOOLEAN InheritedAddressSpace;
......
...@@ -244,7 +244,7 @@ ...@@ -244,7 +244,7 @@
# @ stub DecodeRemotePointer # @ stub DecodeRemotePointer
@ stdcall DecodeSystemPointer(ptr) ntdll.RtlDecodeSystemPointer @ stdcall DecodeSystemPointer(ptr) ntdll.RtlDecodeSystemPointer
@ stdcall DefineDosDeviceW(long wstr wstr) kernel32.DefineDosDeviceW @ stdcall DefineDosDeviceW(long wstr wstr) kernel32.DefineDosDeviceW
@ stdcall DelayLoadFailureHook(str str) kernel32.DelayLoadFailureHook @ stdcall DelayLoadFailureHook(str str)
# @ stub DelayLoadFailureHookLookup # @ stub DelayLoadFailureHookLookup
@ stdcall DeleteAce(ptr long) @ stdcall DeleteAce(ptr long)
# @ stub DeleteBoundaryDescriptor # @ stub DeleteBoundaryDescriptor
...@@ -1344,7 +1344,7 @@ ...@@ -1344,7 +1344,7 @@
@ stdcall ResetEvent(long) @ stdcall ResetEvent(long)
# @ stub ResetState # @ stub ResetState
@ stdcall ResetWriteWatch(ptr long) @ stdcall ResetWriteWatch(ptr long)
@ stdcall ResolveDelayLoadedAPI(ptr ptr ptr ptr ptr long) kernel32.ResolveDelayLoadedAPI @ stdcall -import ResolveDelayLoadedAPI(ptr ptr ptr ptr ptr long) LdrResolveDelayLoadedAPI
# @ stub ResolveDelayLoadsFromDll # @ stub ResolveDelayLoadsFromDll
@ stdcall ResolveLocaleName(wstr ptr long) @ stdcall ResolveLocaleName(wstr ptr long)
@ stdcall RestoreLastError(long) ntdll.RtlRestoreLastWin32Error @ stdcall RestoreLastError(long) ntdll.RtlRestoreLastWin32Error
......
...@@ -42,6 +42,24 @@ WINE_DEFAULT_DEBUG_CHANNEL(module); ...@@ -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.@) * DisableThreadLibraryCalls (kernelbase.@)
*/ */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment