Kaydet (Commit) 7baf4988 authored tarafından David Tardon's avatar David Tardon

WaE: 'nAcquire' may be used uninitialized in this function

Or, the joys of using setjmp/longjmp...
üst 8d6afe4f
...@@ -1701,14 +1701,13 @@ sal_Bool WinSalPrinter::EndJob() ...@@ -1701,14 +1701,13 @@ sal_Bool WinSalPrinter::EndJob()
// it should be safe to release the yield mutex over the EndDoc // it should be safe to release the yield mutex over the EndDoc
// call, however the real solution is supposed to be the threading // call, however the real solution is supposed to be the threading
// framework yet to come. // framework yet to come.
SalData* pSalData = GetSalData(); volatile sal_uLong nAcquire = GetSalData()->mpFirstInstance->ReleaseYieldMutex();
sal_uLong nAcquire = pSalData->mpFirstInstance->ReleaseYieldMutex();
CATCH_DRIVER_EX_BEGIN; CATCH_DRIVER_EX_BEGIN;
if( ::EndDoc( hDC ) <= 0 ) if( ::EndDoc( hDC ) <= 0 )
GetLastError(); GetLastError();
CATCH_DRIVER_EX_END( "exception in EndDoc", this ); CATCH_DRIVER_EX_END( "exception in EndDoc", this );
pSalData->mpFirstInstance->AcquireYieldMutex( nAcquire ); GetSalData()->mpFirstInstance->AcquireYieldMutex( nAcquire );
DeleteDC( hDC ); DeleteDC( hDC );
mhDC = 0; mhDC = 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment