Commit 02be0aee authored by Vitaliy Margolen's avatar Vitaliy Margolen Committed by Alexandre Julliard

dinput: Fix typo. Found by clang.

parent e415b382
...@@ -289,8 +289,8 @@ static HRESULT WINAPI LinuxInputEffectImpl_GetEffectGuid( ...@@ -289,8 +289,8 @@ static HRESULT WINAPI LinuxInputEffectImpl_GetEffectGuid(
TRACE("(this=%p,%p)\n", This, pguid); TRACE("(this=%p,%p)\n", This, pguid);
pguid = &This->guid; *pguid = This->guid;
return DI_OK; return DI_OK;
} }
......
...@@ -375,6 +375,7 @@ static BOOL CALLBACK EnumJoysticks( ...@@ -375,6 +375,7 @@ static BOOL CALLBACK EnumJoysticks(
{ {
DWORD effect_status; DWORD effect_status;
struct DIPROPDWORD diprop_word; struct DIPROPDWORD diprop_word;
GUID guid = {0};
hr = IDirectInputEffect_Initialize(effect, hInstance, data->version, hr = IDirectInputEffect_Initialize(effect, hInstance, data->version,
&GUID_ConstantForce); &GUID_ConstantForce);
...@@ -429,6 +430,9 @@ static BOOL CALLBACK EnumJoysticks( ...@@ -429,6 +430,9 @@ static BOOL CALLBACK EnumJoysticks(
hr = IDirectInputEffect_GetEffectStatus(effect, &effect_status); hr = IDirectInputEffect_GetEffectStatus(effect, &effect_status);
ok(hr==DI_OK,"IDirectInputEffect_GetEffectStatus() failed: %08x\n", hr); ok(hr==DI_OK,"IDirectInputEffect_GetEffectStatus() failed: %08x\n", hr);
todo_wine ok(effect_status!=0,"IDirectInputEffect_GetEffectStatus() reported effect as stopped\n"); 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 /* Check autocenter status
* State: initialy stopped * State: initialy stopped
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment