scrrun: Use BOOL type where appropriate.

This commit is contained in:
Frédéric Delanoy 2013-11-20 23:39:32 +01:00 committed by Alexandre Julliard
parent bb9d1986a9
commit cfe12f9666
1 changed files with 2 additions and 2 deletions

View File

@ -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)