From c46d63aeef6d2c7bb768abf90060f0a400785b3a Mon Sep 17 00:00:00 2001 From: Khaled Hosny Date: Sat, 23 Nov 2013 13:40:50 +0200 Subject: Correctly check getFileURLFromSystemPath() success Change-Id: Iadc34171235fec2d6aafd601f62a0bff8ed5b3ee --- vcl/generic/print/genpspgraphics.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) -- cgit