diff options
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/win/source/gdi/salprn.cxx | 4 |
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:"; |