summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}