Commit 53bd7448 authored by Alexandre Julliard's avatar Alexandre Julliard

winecrt0: Add fallback implementation for __wine_unix_call().

parent ff04d8a4
...@@ -27,8 +27,10 @@ ...@@ -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 ...@@ -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 */
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