hal: Add a stub for HalGetBusData() to make 3DMark2001SE happy in WinNT mode.
Francois Gouget
fgouget at codeweavers.com
Wed Mar 5 05:07:15 CST 2008
---
dlls/hal/hal.c | 24 ++++++++++++++++++++++++
dlls/hal/hal.spec | 2 +-
2 files changed, 25 insertions(+), 1 deletions(-)
diff --git a/dlls/hal/hal.c b/dlls/hal/hal.c
index 10c695b..7c1d4ac 100644
--- a/dlls/hal/hal.c
+++ b/dlls/hal/hal.c
@@ -99,3 +99,27 @@ VOID WINAPI KfReleaseSpinLock(PKSPIN_LOCK SpinLock, KIRQL NewIrql)
{
FIXME( "(%p %u) stub!\n", SpinLock, NewIrql );
}
+
+typedef enum _BUS_DATA_TYPE
+{
+ ConfigurationSpaceUndefined = -1,
+ Cmos,
+ EisaConfiguration,
+ Pos,
+ CbusConfiguration,
+ PCIConfiguration,
+ VMEConfiguration,
+ NuBusConfiguration,
+ PCMCIAConfiguration,
+ MPIConfiguration,
+ MPSAConfiguration,
+ PNPISAConfiguration,
+ MaximumBusDataType
+} BUS_DATA_TYPE, *PBUS_DATA_TYPE;
+
+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