summaryrefslogtreecommitdiff
path: root/fpicker/source/win32/filepicker/asyncrequests.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'fpicker/source/win32/filepicker/asyncrequests.cxx')
-rw-r--r--fpicker/source/win32/filepicker/asyncrequests.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/fpicker/source/win32/filepicker/asyncrequests.cxx b/fpicker/source/win32/filepicker/asyncrequests.cxx
index e8ca9bcc64d4..87e53fac2c48 100644
--- a/fpicker/source/win32/filepicker/asyncrequests.cxx
+++ b/fpicker/source/win32/filepicker/asyncrequests.cxx
@@ -28,7 +28,7 @@ namespace vista{
static void lcl_sleep( ::osl::Condition& aCondition,
::sal_Int32 nMilliSeconds )
{
- sal_uLong nAcquireCount = Application::ReleaseSolarMutex();
+ SolarMutexReleaser aReleaser;
if (nMilliSeconds < 1)
aCondition.wait(0);
@@ -39,8 +39,6 @@ static void lcl_sleep( ::osl::Condition& aCondition,
aTime.Nanosec = (nMilliSeconds % 1000) * 1000000;
aCondition.wait(&aTime);
}
-
- Application::AcquireSolarMutex( nAcquireCount );
}
void Request::wait( ::sal_Int32 nMilliSeconds )