dinput: Use SUCCEEDED instead of !FAILED.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
c2aeb915f4
commit
e35ea310a6
|
@ -174,7 +174,7 @@ static HRESULT diactionformat_atow( const DIACTIONFORMATA *in, DIACTIONFORMATW *
|
|||
out->dwDataSize = in->dwDataSize;
|
||||
out->dwNumActions = in->dwNumActions;
|
||||
|
||||
for (i = 0; i < out->dwNumActions && !FAILED(hr); ++i)
|
||||
for (i = 0; i < out->dwNumActions && SUCCEEDED(hr); ++i)
|
||||
{
|
||||
out->rgoAction[i].uAppData = in->rgoAction[i].uAppData;
|
||||
out->rgoAction[i].dwSemantic = in->rgoAction[i].dwSemantic;
|
||||
|
|
Loading…
Reference in New Issue