projects
/
tools
/
apitrace.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b495461
)
Ok, when != -1
author
Zack Rusin
<zack@kde.org>
Sat, 6 Aug 2011 21:44:22 +0000
(17:44 -0400)
committer
Zack Rusin
<zack@kde.org>
Sat, 6 Aug 2011 21:44:22 +0000
(17:44 -0400)
trace_file.cpp
patch
|
blob
|
history
diff --git
a/trace_file.cpp
b/trace_file.cpp
index
e92eb75
..
4bba837
100644
(file)
--- a/
trace_file.cpp
+++ b/
trace_file.cpp
@@
-112,12
+112,12
@@
bool ZLibFile::rawOpen(const std::string &filename, File::Mode mode)
bool ZLibFile::rawWrite(const void *buffer, int length)
{
- return gzwrite(m_gzFile, buffer, length);
+ return gzwrite(m_gzFile, buffer, length)
!= -1
;
}
bool ZLibFile::rawRead(void *buffer, int length)
{
- return gzread(m_gzFile, buffer, length);
+ return gzread(m_gzFile, buffer, length)
!= -1
;
}
char ZLibFile::rawGetc()