Vitaliy Margolen : dinput: COM cleanup - return interface instead of typecasting This.
Alexandre Julliard
julliard at winehq.org
Mon Jan 10 10:55:19 CST 2011
Module: wine
Branch: master
Commit: b66e00cb09b4cadb7a64ae5b0140c128d87c6335
URL: http://source.winehq.org/git/wine.git/?a=commit;h=b66e00cb09b4cadb7a64ae5b0140c128d87c6335
Author: Vitaliy Margolen <wine-patches at kievinfo.com>
Date: Sun Jan 9 15:43:12 2011 -0700
dinput: COM cleanup - return interface instead of typecasting This.
---
dlls/dinput/effect_linuxinput.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/dinput/effect_linuxinput.c b/dlls/dinput/effect_linuxinput.c
index e35a96f..b7c27cd 100644
--- a/dlls/dinput/effect_linuxinput.c
+++ b/dlls/dinput/effect_linuxinput.c
@@ -844,7 +844,7 @@ HRESULT linuxinput_create_effect(
newEffect->entry = parent_list_entry;
- *peff = (LPDIRECTINPUTEFFECT)newEffect;
+ *peff = &newEffect->IDirectInputEffect_iface;
TRACE("Creating linux input system effect (%p) with guid %s\n",
*peff, _dump_dinput_GUID(rguid));
More information about the wine-cvs
mailing list