summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2012-03-08 09:32:01 +0100
committerDavid Tardon <dtardon@redhat.com>2012-03-12 08:53:28 +0100
commit7baf49884c585836ef11fcbaa41b3529d7e95155 (patch)
tree33f7f5543b8306f465d41fb0f5c10c62579b9350 /vcl
parent8d6afe4fc32e52960aa01909cdd8080ec5152f0a (diff)
WaE: 'nAcquire' may be used uninitialized in this function
Or, the joys of using setjmp/longjmp...
Diffstat (limited to 'vcl')
-rw-r--r--vcl/win/source/gdi/salprn.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/vcl/win/source/gdi/salprn.cxx b/vcl/win/source/gdi/salprn.cxx
index b179e62acffd..e382fac0a547 100644
--- a/vcl/win/source/gdi/salprn.cxx
+++ b/vcl/win/source/gdi/salprn.cxx
@@ -1701,14 +1701,13 @@ sal_Bool WinSalPrinter::EndJob()
// it should be safe to release the yield mutex over the EndDoc
// call, however the real solution is supposed to be the threading
// framework yet to come.
- SalData* pSalData = GetSalData();
- sal_uLong nAcquire = pSalData->mpFirstInstance->ReleaseYieldMutex();
+ volatile sal_uLong nAcquire = GetSalData()->mpFirstInstance->ReleaseYieldMutex();
CATCH_DRIVER_EX_BEGIN;
if( ::EndDoc( hDC ) <= 0 )
GetLastError();
CATCH_DRIVER_EX_END( "exception in EndDoc", this );
- pSalData->mpFirstInstance->AcquireYieldMutex( nAcquire );
+ GetSalData()->mpFirstInstance->AcquireYieldMutex( nAcquire );
DeleteDC( hDC );
mhDC = 0;
}