[Wine-patches] [eterwine] [eter-1.0.12] [eterhack] kernel32: Do not convert arguments with no slashes (eterbug #6934).
Alexander Morozov
amorozov на etersoft.ru
Чт Мар 24 18:24:05 MSK 2011
----------- следующая часть -----------
From e57f5894f699719597ecc0ed71d5b13a66385197 Mon Sep 17 00:00:00 2001
From: Alexander Morozov <amorozov на etersoft.ru>
Date: Thu, 24 Mar 2011 18:15:57 +0300
Subject: [eterhack] kernel32: Do not convert arguments with no slashes (eterbug #6934).
---
dlls/kernel32/process.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/dlls/kernel32/process.c b/dlls/kernel32/process.c
index 8cfebe4..db9d0f2 100644
--- a/dlls/kernel32/process.c
+++ b/dlls/kernel32/process.c
@@ -1242,9 +1242,10 @@ static char **convert_unix_paths( char **argv )
for (ac = 0; ac < argc; ++ac)
{
WCHAR *dos_path;
- int fd, len;
+ int fd = -1, len;
- fd = open( argv[ac], O_RDONLY );
+ if (strchr( argv[ac], '/' ))
+ fd = open( argv[ac], O_RDONLY );
if (fd < 0)
{
len = strlen(argv[ac]) + 1;
--
1.7.4.1
Подробная информация о списке рассылки Wine-patches