mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-15 03:04:47 +00:00
winecrt0: Add fallback implementation for __wine_unix_call().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
ff04d8a4c2
commit
53bd74489d
|
@ -27,8 +27,10 @@
|
||||||
#include "windef.h"
|
#include "windef.h"
|
||||||
#include "winbase.h"
|
#include "winbase.h"
|
||||||
#include "winternl.h"
|
#include "winternl.h"
|
||||||
|
#include "wine/unixlib.h"
|
||||||
|
|
||||||
static NTSTATUS (__cdecl *p__wine_init_unix_lib)( HMODULE, DWORD, const void *, void * );
|
static NTSTATUS (__cdecl *p__wine_init_unix_lib)( HMODULE, DWORD, const void *, void * );
|
||||||
|
static NTSTATUS (WINAPI *p__wine_unix_call)( unixlib_handle_t, unsigned int, void * );
|
||||||
|
|
||||||
static void load_func( void **func, const char *name, void *def )
|
static void load_func( void **func, const char *name, void *def )
|
||||||
{
|
{
|
||||||
|
@ -46,10 +48,21 @@ static NTSTATUS __cdecl fallback__wine_init_unix_lib( HMODULE module, DWORD reas
|
||||||
return STATUS_DLL_NOT_FOUND;
|
return STATUS_DLL_NOT_FOUND;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static NTSTATUS __cdecl fallback__wine_unix_call( unixlib_handle_t handle, unsigned int code, void *args )
|
||||||
|
{
|
||||||
|
return STATUS_DLL_NOT_FOUND;
|
||||||
|
}
|
||||||
|
|
||||||
NTSTATUS __cdecl __wine_init_unix_lib( HMODULE module, DWORD reason, const void *ptr_in, void *ptr_out )
|
NTSTATUS __cdecl __wine_init_unix_lib( HMODULE module, DWORD reason, const void *ptr_in, void *ptr_out )
|
||||||
{
|
{
|
||||||
LOAD_FUNC( __wine_init_unix_lib );
|
LOAD_FUNC( __wine_init_unix_lib );
|
||||||
return p__wine_init_unix_lib( module, reason, ptr_in, ptr_out );
|
return p__wine_init_unix_lib( module, reason, ptr_in, ptr_out );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
NTSTATUS WINAPI __wine_unix_call( unixlib_handle_t handle, unsigned int code, void *args )
|
||||||
|
{
|
||||||
|
LOAD_FUNC( __wine_unix_call );
|
||||||
|
return p__wine_unix_call( handle, code, args );
|
||||||
|
}
|
||||||
|
|
||||||
#endif /* _WIN32 */
|
#endif /* _WIN32 */
|
||||||
|
|
Loading…
Reference in a new issue