summaryrefslogtreecommitdiff
path: root/vcl/generic
diff options
context:
space:
mode:
authorKhaled Hosny <khaledhosny@eglug.org>2013-11-23 13:40:50 +0200
committerKhaled Hosny <khaledhosny@eglug.org>2013-11-23 13:45:01 +0200
commitc46d63aeef6d2c7bb768abf90060f0a400785b3a (patch)
tree7e962d639e564e0c63ed617a7b4a4a24c326ed9b /vcl/generic
parented913215e3ddc398486e69e680da73d6538f270e (diff)
Correctly check getFileURLFromSystemPath() success
Change-Id: Iadc34171235fec2d6aafd601f62a0bff8ed5b3ee
Diffstat (limited to 'vcl/generic')
-rw-r--r--vcl/generic/print/genpspgraphics.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/generic/print/genpspgraphics.cxx b/vcl/generic/print/genpspgraphics.cxx
index 04b41fea1074..542986a23ca6 100644
--- a/vcl/generic/print/genpspgraphics.cxx
+++ b/vcl/generic/print/genpspgraphics.cxx
@@ -1382,7 +1382,7 @@ const void* GenPspGraphics::DoGetEmbedFontData( psp::fontID aFont, const sal_Ucs
#else
// FIXME: test me ! ...
OUString aURL;
- if( !osl::File::getFileURLFromSystemPath( OStringToOUString( aSysPath, osl_getThreadTextEncoding() ), aURL ) )
+ if( osl::File::getFileURLFromSystemPath( OStringToOUString( aSysPath, osl_getThreadTextEncoding() ), aURL ) != osl::File::E_None )
return NULL;
osl::File aFile( aURL );
if( aFile.open( osl_File_OpenFlag_Read | osl_File_OpenFlag_NoLock ) != osl::File::E_None )