=?UTF-8?Q?Fr=C3=A9d=C3=A9ric=20Delanoy=20?=: dinput: Use BOOL type where appropriate.
Alexandre Julliard
julliard at winehq.org
Tue Oct 8 15:41:04 CDT 2013
Module: wine
Branch: master
Commit: b95272e2d5f761e0994286f9996882fbf6c1c318
URL: http://source.winehq.org/git/wine.git/?a=commit;h=b95272e2d5f761e0994286f9996882fbf6c1c318
Author: Frédéric Delanoy <frederic.delanoy at gmail.com>
Date: Mon Oct 7 22:49:35 2013 +0200
dinput: Use BOOL type where appropriate.
---
dlls/dinput/device.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/dinput/device.c b/dlls/dinput/device.c
index fc5ad5d..08ebfd7 100644
--- a/dlls/dinput/device.c
+++ b/dlls/dinput/device.c
@@ -575,7 +575,7 @@ static DWORD semantic_to_obj_id(IDirectInputDeviceImpl* This, DWORD dwSemantic)
DWORD type = (0x0000ff00 & dwSemantic) >> 8;
DWORD offset = 0x000000ff & dwSemantic;
DWORD obj_instance = 0;
- DWORD found = 0;
+ BOOL found = FALSE;
int i;
for (i = 0; i < This->data_format.wine_df->dwNumObjs; i++)
@@ -585,7 +585,7 @@ static DWORD semantic_to_obj_id(IDirectInputDeviceImpl* This, DWORD dwSemantic)
if (odf->dwOfs == offset)
{
obj_instance = DIDFT_GETINSTANCE(odf->dwType);
- found = 1;
+ found = TRUE;
break;
}
}
More information about the wine-cvs
mailing list