mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-06 08:50:49 +00:00
msv1_0: Use the Unix call helpers.
This commit is contained in:
parent
0e10e6ab55
commit
6674e6d713
|
@ -43,30 +43,28 @@ WINE_DEFAULT_DEBUG_CHANNEL(ntlm);
|
||||||
static ULONG ntlm_package_id;
|
static ULONG ntlm_package_id;
|
||||||
static LSA_DISPATCH_TABLE lsa_dispatch;
|
static LSA_DISPATCH_TABLE lsa_dispatch;
|
||||||
|
|
||||||
static unixlib_handle_t ntlm_handle;
|
|
||||||
|
|
||||||
static NTSTATUS ntlm_check_version(void)
|
static NTSTATUS ntlm_check_version(void)
|
||||||
{
|
{
|
||||||
return __wine_unix_call( ntlm_handle, unix_check_version, NULL );
|
return WINE_UNIX_CALL( unix_check_version, NULL );
|
||||||
}
|
}
|
||||||
|
|
||||||
static void ntlm_cleanup( struct ntlm_ctx *ctx )
|
static void ntlm_cleanup( struct ntlm_ctx *ctx )
|
||||||
{
|
{
|
||||||
__wine_unix_call( ntlm_handle, unix_cleanup, ctx );
|
WINE_UNIX_CALL( unix_cleanup, ctx );
|
||||||
}
|
}
|
||||||
|
|
||||||
static NTSTATUS ntlm_chat( struct ntlm_ctx *ctx, char *buf, unsigned int buflen, unsigned int *retlen )
|
static NTSTATUS ntlm_chat( struct ntlm_ctx *ctx, char *buf, unsigned int buflen, unsigned int *retlen )
|
||||||
{
|
{
|
||||||
struct chat_params params = { ctx, buf, buflen, retlen };
|
struct chat_params params = { ctx, buf, buflen, retlen };
|
||||||
|
|
||||||
return __wine_unix_call( ntlm_handle, unix_chat, ¶ms );
|
return WINE_UNIX_CALL( unix_chat, ¶ms );
|
||||||
}
|
}
|
||||||
|
|
||||||
static NTSTATUS ntlm_fork( struct ntlm_ctx *ctx, char **argv )
|
static NTSTATUS ntlm_fork( struct ntlm_ctx *ctx, char **argv )
|
||||||
{
|
{
|
||||||
struct fork_params params = { ctx, argv };
|
struct fork_params params = { ctx, argv };
|
||||||
|
|
||||||
return __wine_unix_call( ntlm_handle, unix_fork, ¶ms );
|
return WINE_UNIX_CALL( unix_fork, ¶ms );
|
||||||
}
|
}
|
||||||
|
|
||||||
#define NTLM_CAPS \
|
#define NTLM_CAPS \
|
||||||
|
@ -1608,8 +1606,7 @@ BOOL WINAPI DllMain( HINSTANCE hinst, DWORD reason, void *reserved )
|
||||||
switch (reason)
|
switch (reason)
|
||||||
{
|
{
|
||||||
case DLL_PROCESS_ATTACH:
|
case DLL_PROCESS_ATTACH:
|
||||||
if (NtQueryVirtualMemory( GetCurrentProcess(), hinst, MemoryWineUnixFuncs,
|
if (__wine_init_unix_call())
|
||||||
&ntlm_handle, sizeof(ntlm_handle), NULL ))
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
DisableThreadLibraryCalls( hinst );
|
DisableThreadLibraryCalls( hinst );
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue