From 997733c8e9f0cf61af70bf33c88fe73288f95588 Mon Sep 17 00:00:00 2001 From: Hennes Rohling Date: Mon, 20 Aug 2001 08:30:22 +0000 Subject: #91260# GetCurrentDirectory receives count of elements not size ib bytes --- sal/osl/w32/process.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sal/osl/w32/process.c b/sal/osl/w32/process.c index 77cb5aa3ddd0..850ae63fe3c7 100644 --- a/sal/osl/w32/process.c +++ b/sal/osl/w32/process.c @@ -2,9 +2,9 @@ * * $RCSfile: process.c,v $ * - * $Revision: 1.15 $ + * $Revision: 1.16 $ * - * last change: $Author: hro $ $Date: 2001-07-23 15:20:15 $ + * last change: $Author: hro $ $Date: 2001-08-20 09:30:22 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -84,7 +84,7 @@ extern oslFileHandle SAL_CALL osl_createFileHandleFromOSHandle( HANDLE hFile ); oslProcessError SAL_CALL osl_getProcessWorkingDir( rtl_uString **pustrWorkingDir ) { TCHAR szBuffer[MAX_PATH]; - DWORD dwLen = GetCurrentDirectory( sizeof(szBuffer), szBuffer ); + DWORD dwLen = GetCurrentDirectory( sizeof(szBuffer) / sizeof(TCHAR), szBuffer ); if ( dwLen ) { -- cgit