hal: Add a stub for HalGetBusData() to make 3DMark2001SE happy in WinNT mode.
Francois Gouget
fgouget at codeweavers.com
Thu Mar 6 06:28:27 CST 2008
---
This depends on the previous ntddk.h header. Though I guess we could
also s/BUS_DATA_TYPE/int/ but that would not be as nice.
dlls/hal/hal.c | 9 ++++++++-
dlls/hal/hal.spec | 2 +-
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/dlls/hal/hal.c b/dlls/hal/hal.c
index 10c695b..0b64809 100644
--- a/dlls/hal/hal.c
+++ b/dlls/hal/hal.c
@@ -31,7 +31,7 @@
#include "windef.h"
#include "winternl.h"
#include "excpt.h"
-#include "ddk/wdm.h"
+#include "ddk/ntddk.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL(ntoskrnl);
@@ -99,3 +99,10 @@ VOID WINAPI KfReleaseSpinLock(PKSPIN_LOCK SpinLock, KIRQL NewIrql)
{
FIXME( "(%p %u) stub!\n", SpinLock, NewIrql );
}
+
+ULONG WINAPI HalGetBusData(BUS_DATA_TYPE BusDataType, ULONG BusNumber, ULONG SlotNumber, PVOID Buffer, ULONG Length)
+{
+ FIXME("(%u %u %u %p %u) stub!\n", BusDataType, BusNumber, SlotNumber, Buffer, Length);
+ /* Claim that there is no such bus */
+ return 0;
+}
diff --git a/dlls/hal/hal.spec b/dlls/hal/hal.spec
index 298dc8e..5afbee0 100644
--- a/dlls/hal/hal.spec
+++ b/dlls/hal/hal.spec
@@ -33,7 +33,7 @@
@ stub HalFlushCommonBuffer
@ stub HalFreeCommonBuffer
@ stub HalGetAdapter
-@ stub HalGetBusData
+@ stdcall HalGetBusData(long long long ptr long)
@ stub HalGetBusDataByOffset
@ stub HalGetEnvironmentVariable
@ stub HalGetInterruptVector
--
1.5.4.1
More information about the wine-patches
mailing list