diff options
Diffstat (limited to 'sal/osl/w32/process.c')
-rw-r--r-- | sal/osl/w32/process.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/sal/osl/w32/process.c b/sal/osl/w32/process.c index e12801d58a65..fa723c610af7 100644 --- a/sal/osl/w32/process.c +++ b/sal/osl/w32/process.c @@ -2,9 +2,9 @@ * * $RCSfile: process.c,v $ * - * $Revision: 1.18 $ + * $Revision: 1.19 $ * - * last change: $Author: obr $ $Date: 2001-09-12 11:32:25 $ + * last change: $Author: hro $ $Date: 2001-09-24 13:49:15 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -120,10 +120,17 @@ oslProcessError SAL_CALL osl_setProcessLocale( rtl_Locale * pLocale ) /***************************************************************************/ +extern oslMutex g_CurrentDirectoryMutex; + oslProcessError SAL_CALL osl_getProcessWorkingDir( rtl_uString **pustrWorkingDir ) { TCHAR szBuffer[MAX_PATH]; - DWORD dwLen = GetCurrentDirectory( sizeof(szBuffer) / sizeof(TCHAR), szBuffer ); + DWORD dwLen; + + + osl_acquireMutex( g_CurrentDirectoryMutex ); + dwLen = GetCurrentDirectory( sizeof(szBuffer) / sizeof(TCHAR), szBuffer ); + osl_releaseMutex( g_CurrentDirectoryMutex ); if ( dwLen ) { |