summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorMatthias Huetsch <mhu@openoffice.org>2004-11-03 13:37:35 +0000
committerMatthias Huetsch <mhu@openoffice.org>2004-11-03 13:37:35 +0000
commitbf34a95451648c85559abfe17d4dcf55763ae9a9 (patch)
treea836a17c6b5c246991cb87b5d34de53f992a4251 /sal
parente68c7ff3515532cba37588755f1719918d0a549a (diff)
#i36556# Fixed osl_setCommandArgs() to ensure absolute path for argv[0]; see @ osl_getExecutableFile().
Diffstat (limited to 'sal')
-rw-r--r--sal/osl/w32/process.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sal/osl/w32/process.c b/sal/osl/w32/process.c
index 2ba1c576adcc..783f39113feb 100644
--- a/sal/osl/w32/process.c
+++ b/sal/osl/w32/process.c
@@ -2,9 +2,9 @@
*
* $RCSfile: process.c,v $
*
- * $Revision: 1.28 $
+ * $Revision: 1.29 $
*
- * last change: $Author: mhu $ $Date: 2004-11-02 17:31:29 $
+ * last change: $Author: mhu $ $Date: 2004-11-03 14:37:35 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -274,8 +274,8 @@ static rtl_uString ** osl_createCommandArgs_Impl (int argc, char ** argv)
DWORD dwResult;
TCHAR szBuffer[MAX_PATH];
- dwResult = GetFullPathName (
- ppArgs[0]->buffer, MAX_PATH, szBuffer, 0);
+ dwResult = SearchPath (
+ 0, ppArgs[0]->buffer, L".exe", MAX_PATH, szBuffer, 0);
if ((0 < dwResult) && (dwResult < MAX_PATH))
{
/* Replace argv[0] with it's absolute path */