Commit abffa4ed authored by André Hentschel's avatar André Hentschel Committed by Michael Stefaniuc

ndis.sys: Implement NdisSystemProcessorCount.

Signed-off-by: 's avatarAndré Hentschel <nerv@dawncrow.de> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org> (cherry picked from commit 113f4325) Signed-off-by: 's avatarMichael Stefaniuc <mstefani@winehq.org>
parent 1ab6fbc2
......@@ -48,3 +48,13 @@ void WINAPI NdisAllocateSpinLock(NDIS_SPIN_LOCK *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 NdisSetTimerEx
@ stub NdisSetupDmaTransfer
@ stub NdisSystemProcessorCount
@ stdcall NdisSystemProcessorCount()
@ stub NdisTerminateWrapper
@ stub NdisTransferData
@ stub NdisUnchainBufferAtBack
......
......@@ -33,5 +33,6 @@ typedef struct _NDIS_SPIN_LOCK
NDIS_STATUS WINAPI NdisAllocateMemoryWithTag(void **, UINT, ULONG);
void WINAPI NdisAllocateSpinLock(NDIS_SPIN_LOCK *);
CCHAR WINAPI NdisSystemProcessorCount(void);
#endif /* _NDIS_ */
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