summaryrefslogtreecommitdiff
path: root/psprint
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2003-08-25 12:59:34 +0000
committerKurt Zenker <kz@openoffice.org>2003-08-25 12:59:34 +0000
commita115709386128a7aed8d00b0e2fb41e337eaa758 (patch)
tree73439e89060b0f05feba5bb09894910c9d99265c /psprint
parentad8ebd89a7da7d7ddbbe183f16b9571c768b6427 (diff)
INTEGRATION: CWS vcl15 (1.2.62); FILE MERGED
2003/07/10 16:46:58 pl 1.2.62.1: #i7578# do not crash if a tmp file cannot be created
Diffstat (limited to 'psprint')
-rw-r--r--psprint/source/printergfx/psputil.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/psprint/source/printergfx/psputil.cxx b/psprint/source/printergfx/psputil.cxx
index f7ed5f4f6a57..13df20ad2670 100644
--- a/psprint/source/printergfx/psputil.cxx
+++ b/psprint/source/printergfx/psputil.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: psputil.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: pl $ $Date: 2002-03-20 15:37:37 $
+ * last change: $Author: kz $ $Date: 2003-08-25 13:59:34 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -193,7 +193,7 @@ WritePS (osl::File* pFile, const sal_Char* pString)
sal_uInt64 nInLength = rtl_str_getLength (pString);
sal_uInt64 nOutLength = 0;
- if (nInLength > 0)
+ if (nInLength > 0 && pFile)
pFile->write (pString, nInLength, nOutLength);
return nInLength == nOutLength;
@@ -204,7 +204,7 @@ WritePS (osl::File* pFile, const sal_Char* pString, sal_uInt64 nInLength)
{
sal_uInt64 nOutLength = 0;
- if (nInLength > 0)
+ if (nInLength > 0 && pFile)
pFile->write (pString, nInLength, nOutLength);
return nInLength == nOutLength;
@@ -216,7 +216,7 @@ WritePS (osl::File* pFile, const rtl::OString &rString)
sal_uInt64 nInLength = rString.getLength();
sal_uInt64 nOutLength = 0;
- if (nInLength > 0)
+ if (nInLength > 0 && pFile)
pFile->write (rString, nInLength, nOutLength);
return nInLength == nOutLength;