Francois Gouget : hal: Add a stub for HalGetBusData() to make 3DMark2001SE happy in WinNT mode.

Alexandre Julliard julliard at winehq.org
Thu Mar 6 11:08:37 CST 2008


Module: wine
Branch: master
Commit: a555658ba1cfcfc887b973fa8b7ae260a17e7fca
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=a555658ba1cfcfc887b973fa8b7ae260a17e7fca

Author: Francois Gouget <fgouget at codeweavers.com>
Date:   Thu Mar  6 13:28:27 2008 +0100

hal: Add a stub for HalGetBusData() to make 3DMark2001SE happy in WinNT mode.

---

 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




More information about the wine-cvs mailing list