Andrew Fenn : xinput1_3: Added stub for XInputGetDSoundAudioDeviceGuids.
Alexandre Julliard
julliard at winehq.org
Thu Jan 8 08:31:15 CST 2009
Module: wine
Branch: master
Commit: f58aae7b690b5e72c5cdbc468e2c9a3b30380d2f
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f58aae7b690b5e72c5cdbc468e2c9a3b30380d2f
Author: Andrew Fenn <andrewfenn at gmail.com>
Date: Thu Jan 8 01:45:57 2009 +0700
xinput1_3: Added stub for XInputGetDSoundAudioDeviceGuids.
---
dlls/xinput1_3/xinput1_3.spec | 2 +-
dlls/xinput1_3/xinput1_3_main.c | 12 ++++++++++++
2 files changed, 13 insertions(+), 1 deletions(-)
diff --git a/dlls/xinput1_3/xinput1_3.spec b/dlls/xinput1_3/xinput1_3.spec
index f2d961c..c8e0f53 100644
--- a/dlls/xinput1_3/xinput1_3.spec
+++ b/dlls/xinput1_3/xinput1_3.spec
@@ -3,5 +3,5 @@
@ stdcall XInputGetState(long ptr)
@ stdcall XInputGetKeystroke(long long ptr)
@ stdcall XInputGetCapabilities(long long ptr)
-@ stub XInputGetDSoundAudioDeviceGuids #(long ptr ptr)
+@ stdcall XInputGetDSoundAudioDeviceGuids(long ptr ptr)
@ stub XInputGetBatteryInformation
diff --git a/dlls/xinput1_3/xinput1_3_main.c b/dlls/xinput1_3/xinput1_3_main.c
index 636dcd1..1e69bc1 100644
--- a/dlls/xinput1_3/xinput1_3_main.c
+++ b/dlls/xinput1_3/xinput1_3_main.c
@@ -102,3 +102,15 @@ DWORD WINAPI XInputGetCapabilities(DWORD dwUserIndex, DWORD dwFlags, XINPUT_CAPA
}
return ERROR_BAD_ARGUMENTS;
}
+
+DWORD WINAPI XInputGetDSoundAudioDeviceGuids(DWORD dwUserIndex, GUID* pDSoundRenderGuid, GUID* pDSoundCaptureGuid)
+{
+ FIXME("(%d %s %s) Stub!\n", dwUserIndex, debugstr_guid(pDSoundRenderGuid), debugstr_guid(pDSoundCaptureGuid));
+
+ if (dwUserIndex < XUSER_MAX_COUNT)
+ {
+ return ERROR_DEVICE_NOT_CONNECTED;
+ /* If controller exists then return ERROR_SUCCESS */
+ }
+ return ERROR_BAD_ARGUMENTS;
+}
More information about the wine-cvs
mailing list