ndis.sys: Implement NdisSystemProcessorCount.
Signed-off-by: André Hentschel <nerv@dawncrow.de> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
613b2454e5
commit
113f43250a
|
@ -48,3 +48,13 @@ void WINAPI NdisAllocateSpinLock(NDIS_SPIN_LOCK *lock)
|
||||||
{
|
{
|
||||||
FIXME("(%p): stub\n", lock);
|
FIXME("(%p): stub\n", lock);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CCHAR WINAPI NdisSystemProcessorCount(void)
|
||||||
|
{
|
||||||
|
SYSTEM_INFO si;
|
||||||
|
|
||||||
|
TRACE("()\n");
|
||||||
|
GetSystemInfo(&si);
|
||||||
|
|
||||||
|
return si.dwNumberOfProcessors;
|
||||||
|
}
|
||||||
|
|
|
@ -257,7 +257,7 @@
|
||||||
@ stub NdisSetTimer
|
@ stub NdisSetTimer
|
||||||
@ stub NdisSetTimerEx
|
@ stub NdisSetTimerEx
|
||||||
@ stub NdisSetupDmaTransfer
|
@ stub NdisSetupDmaTransfer
|
||||||
@ stub NdisSystemProcessorCount
|
@ stdcall NdisSystemProcessorCount()
|
||||||
@ stub NdisTerminateWrapper
|
@ stub NdisTerminateWrapper
|
||||||
@ stub NdisTransferData
|
@ stub NdisTransferData
|
||||||
@ stub NdisUnchainBufferAtBack
|
@ stub NdisUnchainBufferAtBack
|
||||||
|
|
|
@ -33,5 +33,6 @@ typedef struct _NDIS_SPIN_LOCK
|
||||||
|
|
||||||
NDIS_STATUS WINAPI NdisAllocateMemoryWithTag(void **, UINT, ULONG);
|
NDIS_STATUS WINAPI NdisAllocateMemoryWithTag(void **, UINT, ULONG);
|
||||||
void WINAPI NdisAllocateSpinLock(NDIS_SPIN_LOCK *);
|
void WINAPI NdisAllocateSpinLock(NDIS_SPIN_LOCK *);
|
||||||
|
CCHAR WINAPI NdisSystemProcessorCount(void);
|
||||||
|
|
||||||
#endif /* _NDIS_ */
|
#endif /* _NDIS_ */
|
||||||
|
|
Loading…
Reference in New Issue