=?UTF-8?Q?Fr=C3=A9d=C3=A9ric=20Delanoy=20?=: winejoystick.drv: Use BOOL type where appropriate.
Alexandre Julliard
julliard at winehq.org
Fri Nov 29 13:24:27 CST 2013
Module: wine
Branch: master
Commit: 39afda4f6c402ce2dc3454545057797f8cad3430
URL: http://source.winehq.org/git/wine.git/?a=commit;h=39afda4f6c402ce2dc3454545057797f8cad3430
Author: Frédéric Delanoy <frederic.delanoy at gmail.com>
Date: Wed Nov 27 23:19:05 2013 +0100
winejoystick.drv: Use BOOL type where appropriate.
---
dlls/winejoystick.drv/joystick.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/winejoystick.drv/joystick.c b/dlls/winejoystick.drv/joystick.c
index 577e593..00ca4e2 100644
--- a/dlls/winejoystick.drv/joystick.c
+++ b/dlls/winejoystick.drv/joystick.c
@@ -78,7 +78,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(joystick);
typedef struct tagWINE_JSTCK {
int joyIntf;
- int in_use;
+ BOOL in_use;
/* Some extra info we need to make this actually work under the
Linux 2.2 event api.
First of all, we cannot keep closing and reopening the device file -
@@ -129,7 +129,7 @@ static LRESULT JSTCK_drvOpen(LPSTR str, DWORD dwIntf)
return 0;
JSTCK_Data[dwIntf].joyIntf = dwIntf;
- JSTCK_Data[dwIntf].in_use = 1;
+ JSTCK_Data[dwIntf].in_use = TRUE;
return (LRESULT)&JSTCK_Data[dwIntf];
}
@@ -142,7 +142,7 @@ static LRESULT JSTCK_drvClose(DWORD_PTR dwDevID)
if (jstck == NULL)
return 0;
- jstck->in_use = 0;
+ jstck->in_use = FALSE;
if (jstck->dev > 0)
{
close(jstck->dev);
More information about the wine-cvs
mailing list