=?UTF-8?Q?Fr=C3=A9d=C3=A9ric=20Delanoy=20?=: scrrun: Use BOOL type where appropriate.

Alexandre Julliard julliard at winehq.org
Thu Nov 21 14:07:46 CST 2013


Module: wine
Branch: master
Commit: cfe12f96665233060eea9f914ed33b836eababea
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=cfe12f96665233060eea9f914ed33b836eababea

Author: Frédéric Delanoy <frederic.delanoy at gmail.com>
Date:   Wed Nov 20 23:39:32 2013 +0100

scrrun: Use BOOL type where appropriate.

---

 dlls/scrrun/filesystem.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/scrrun/filesystem.c b/dlls/scrrun/filesystem.c
index ee89b76..0d360d3 100644
--- a/dlls/scrrun/filesystem.c
+++ b/dlls/scrrun/filesystem.c
@@ -89,12 +89,12 @@ static inline HRESULT create_error(DWORD err)
     }
 }
 
-static int textstream_check_iomode(struct textstream *This, enum iotype type)
+static BOOL textstream_check_iomode(struct textstream *This, enum iotype type)
 {
     if (type == IORead)
         return This->mode == ForWriting || This->mode == ForAppending;
     else
-        return 1;
+        return TRUE;
 }
 
 static HRESULT WINAPI textstream_QueryInterface(ITextStream *iface, REFIID riid, void **obj)




More information about the wine-cvs mailing list