mirror of
https://github.com/reactos/wine.git
synced 2025-02-09 21:55:12 +00:00
Non-Linux compile fix.
This commit is contained in:
parent
93d7057293
commit
7b0a088f5a
@ -34,31 +34,42 @@ DEFAULT_DEBUG_CHANNEL(aspi)
|
|||||||
static ASPI_DEVICE_INFO *ASPI_open_devices = NULL;
|
static ASPI_DEVICE_INFO *ASPI_open_devices = NULL;
|
||||||
static CRITICAL_SECTION ASPI_CritSection;
|
static CRITICAL_SECTION ASPI_CritSection;
|
||||||
|
|
||||||
|
#endif /* defined(linux) */
|
||||||
|
|
||||||
|
|
||||||
BOOL WINAPI WNASPI32_LibMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID fImpLoad)
|
BOOL WINAPI WNASPI32_LibMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID fImpLoad)
|
||||||
{
|
{
|
||||||
|
#ifdef linux
|
||||||
static BOOL bInitDone=FALSE;
|
static BOOL bInitDone=FALSE;
|
||||||
// TRACE("0x%x 0x%1x %p\n", hInstDLL, fdwReason, fImpLoad);
|
#if 0
|
||||||
|
TRACE("0x%x 0x%1x %p\n", hInstDLL, fdwReason, fImpLoad);
|
||||||
|
#endif
|
||||||
switch( fdwReason )
|
switch( fdwReason )
|
||||||
{
|
{
|
||||||
case DLL_PROCESS_ATTACH:
|
case DLL_PROCESS_ATTACH:
|
||||||
// Create instance data
|
/* Create instance data */
|
||||||
if(!bInitDone)
|
if(!bInitDone)
|
||||||
{
|
{
|
||||||
// Initialize global stuff just once
|
/* Initialize global stuff just once */
|
||||||
InitializeCriticalSection(&ASPI_CritSection);
|
InitializeCriticalSection(&ASPI_CritSection);
|
||||||
bInitDone=TRUE;
|
bInitDone=TRUE;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case DLL_PROCESS_DETACH:
|
case DLL_PROCESS_DETACH:
|
||||||
// Destroy instance data
|
/* Destroy instance data */
|
||||||
break;
|
break;
|
||||||
case DLL_THREAD_ATTACH:
|
case DLL_THREAD_ATTACH:
|
||||||
case DLL_THREAD_DETACH:
|
case DLL_THREAD_DETACH:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
#else /* defined(linux) */
|
||||||
|
return TRUE;
|
||||||
|
#endif /* defined(linux) */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef linux
|
||||||
|
|
||||||
static int
|
static int
|
||||||
ASPI_OpenDevice(SRB_ExecSCSICmd *prb)
|
ASPI_OpenDevice(SRB_ExecSCSICmd *prb)
|
||||||
{
|
{
|
||||||
@ -370,7 +381,8 @@ error_exit:
|
|||||||
HeapFree(GetProcessHeap(), 0, sg_hd);
|
HeapFree(GetProcessHeap(), 0, sg_hd);
|
||||||
return lpPRB->SRB_Status;
|
return lpPRB->SRB_Status;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
#endif /* defined(linux) */
|
||||||
|
|
||||||
|
|
||||||
/*******************************************************************
|
/*******************************************************************
|
||||||
|
Loading…
x
Reference in New Issue
Block a user