diff options
author | Serge Krot <Serge.Krot@cib.de> | 2015-10-25 14:37:11 +0300 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2015-10-25 22:31:44 +0000 |
commit | 0b018d202dfcf4bb16b708e10085a4146243b0a0 (patch) | |
tree | 4a00a62a88666944f6e7178ab70c497a090becc2 /sal/osl | |
parent | ce463679a5a362d5c3f7c146f70b6be838ddbb2d (diff) |
tdf#39440: fix several warnings reported by cppcheck
Change-Id: I560d28b7cc67740c6479494d0e5aa62d2ac6ffae
Reviewed-on: https://gerrit.libreoffice.org/19587
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'sal/osl')
-rw-r--r-- | sal/osl/w32/profile.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sal/osl/w32/profile.cxx b/sal/osl/w32/profile.cxx index ff7a02580d41..a3465cacabe0 100644 --- a/sal/osl/w32/profile.cxx +++ b/sal/osl/w32/profile.cxx @@ -392,7 +392,7 @@ static sal_Bool writeProfileImpl(osl_TFile* pFile) bRet=WriteFile(pFile->m_Handle, pFile->m_pWriteBuf, pFile->m_nWriteBufLen - pFile->m_nWriteBufFree,&BytesWritten,NULL); - if ( bRet == 0 || BytesWritten <= 0 ) + if ( bRet == 0 || BytesWritten == 0 ) { OSL_ENSURE(bRet,"WriteFile failed!!!"); OSL_TRACE("write failed '%s'",strerror(errno)); |