summaryrefslogtreecommitdiff
path: root/vcl/win/source/gdi/salprn.cxx
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2007-01-25 10:27:03 +0000
committerOliver Bolte <obo@openoffice.org>2007-01-25 10:27:03 +0000
commita454dde1121bf39a07eadc6ab3076770bcce529a (patch)
treebb5cc9a8475881fa6fc3fa18d9990ae8ab012723 /vcl/win/source/gdi/salprn.cxx
parent40a8169c38b65a4cbce3a3141c2d3c0290a8d8bc (diff)
INTEGRATION: CWS vcl71 (1.29.20); FILE MERGED
2007/01/10 17:00:33 pl 1.29.20.1: #144491# check for NULL in all cases
Diffstat (limited to 'vcl/win/source/gdi/salprn.cxx')
-rw-r--r--vcl/win/source/gdi/salprn.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/win/source/gdi/salprn.cxx b/vcl/win/source/gdi/salprn.cxx
index 6694a7ff5912..c284bd7aa911 100644
--- a/vcl/win/source/gdi/salprn.cxx
+++ b/vcl/win/source/gdi/salprn.cxx
@@ -1784,9 +1784,9 @@ BOOL WinSalPrinter::StartJob( const XubString* pFileName,
aInfo.lpszDocName = (LPWSTR)rJobName.GetBuffer();
if ( pFileName || aOutFileName.getLength() )
{
- if ( pFileName->Len() || aOutFileName.getLength() )
+ if ( (pFileName && pFileName->Len()) || aOutFileName.getLength() )
{
- aInfo.lpszOutput = (LPWSTR)(pFileName ? pFileName->GetBuffer() : aOutFileName.getStr());
+ aInfo.lpszOutput = (LPWSTR)( (pFileName && pFileName->Len()) ? pFileName->GetBuffer() : aOutFileName.getStr());
}
else
aInfo.lpszOutput = L"FILE:";