winejoystick.drv: Use BOOL type where appropriate
Frédéric Delanoy
frederic.delanoy at gmail.com
Wed Nov 27 16:19:05 CST 2013
---
dlls/winejoystick.drv/joystick.c | 6 +++---
1 file 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);
--
1.8.4.4
More information about the wine-patches
mailing list