dinput: Fix typo. Found by clang.

This commit is contained in:
Vitaliy Margolen 2011-01-24 20:36:01 -07:00 committed by Alexandre Julliard
parent e415b3828b
commit 02be0aee72
2 changed files with 6 additions and 2 deletions

View File

@ -289,7 +289,7 @@ static HRESULT WINAPI LinuxInputEffectImpl_GetEffectGuid(
TRACE("(this=%p,%p)\n", This, pguid);
pguid = &This->guid;
*pguid = This->guid;
return DI_OK;
}

View File

@ -375,6 +375,7 @@ static BOOL CALLBACK EnumJoysticks(
{
DWORD effect_status;
struct DIPROPDWORD diprop_word;
GUID guid = {0};
hr = IDirectInputEffect_Initialize(effect, hInstance, data->version,
&GUID_ConstantForce);
@ -429,6 +430,9 @@ static BOOL CALLBACK EnumJoysticks(
hr = IDirectInputEffect_GetEffectStatus(effect, &effect_status);
ok(hr==DI_OK,"IDirectInputEffect_GetEffectStatus() failed: %08x\n", hr);
todo_wine ok(effect_status!=0,"IDirectInputEffect_GetEffectStatus() reported effect as stopped\n");
hr = IDirectInputEffect_GetEffectGuid(effect, &guid);
ok(hr==DI_OK,"IDirectInputEffect_GetEffectGuid() failed: %08x\n", hr);
ok(IsEqualGUID(&GUID_ConstantForce, &guid), "Wrong guid returned\n");
/* Check autocenter status
* State: initialy stopped