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()
// 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;
}
......
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