summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2012-03-07 12:48:13 +0100
committerDavid Tardon <dtardon@redhat.com>2012-03-07 14:01:29 +0100
commit2b39d8122d490a16b2f748f40595d74ac19acfae (patch)
treeaf7b70af6b1ea2ad34b02289a039a0522ff285bd /sal
parentc5dc8967644639514e760034031da8b4a8d705ef (diff)
WaE: ordered comparison of pointer with integer zero
Diffstat (limited to 'sal')
-rw-r--r--sal/osl/w32/profile.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sal/osl/w32/profile.cxx b/sal/osl/w32/profile.cxx
index c95b376fd106..1a019d073263 100644
--- a/sal/osl/w32/profile.cxx
+++ b/sal/osl/w32/profile.cxx
@@ -375,7 +375,7 @@ sal_Bool SAL_CALL osl_flushProfile(oslProfile Profile)
}
pFile = pProfile->m_pFile;
- if ( !( pFile != 0 && pFile->m_Handle >= 0 ) )
+ if ( pFile == 0 || pFile->m_Handle == INVALID_HANDLE_VALUE )
{
#ifdef TRACE_OSL_PROFILE
OSL_TRACE("Out osl_flushProfile() [invalid file]");
@@ -1366,7 +1366,7 @@ static sal_Bool putLine(osl_TFile* pFile, const sal_Char *pszLine)
{
unsigned int Len = strlen(pszLine);
- if ( pFile == 0 || pFile->m_Handle < 0 )
+ if ( pFile == 0 || pFile->m_Handle == INVALID_HANDLE_VALUE )
{
return (sal_False);
}