summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
Diffstat (limited to 'vcl')
-rw-r--r--vcl/win/source/gdi/salprn.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/vcl/win/source/gdi/salprn.cxx b/vcl/win/source/gdi/salprn.cxx
index 7fdd77394cc2..dc67b8d3ebfb 100644
--- a/vcl/win/source/gdi/salprn.cxx
+++ b/vcl/win/source/gdi/salprn.cxx
@@ -1689,7 +1689,6 @@ sal_Bool WinSalPrinter::StartJob( const XubString* pFileName,
sal_Bool WinSalPrinter::EndJob()
{
- DWORD err = 0;
HDC hDC = mhDC;
if ( isValid() && hDC )
{
@@ -1710,7 +1709,7 @@ sal_Bool WinSalPrinter::EndJob()
sal_uLong nAcquire = pSalData->mpFirstInstance->ReleaseYieldMutex();
CATCH_DRIVER_EX_BEGIN;
if( ::EndDoc( hDC ) <= 0 )
- err = GetLastError();
+ DWORD err = GetLastError();
CATCH_DRIVER_EX_END( "exception in EndDoc", this );
pSalData->mpFirstInstance->AcquireYieldMutex( nAcquire );