You've already forked wine-staging
mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2025-09-12 18:50:20 -07:00
Rebase against 8f46ac233ed96f7286f6aacd1f8fb2626d3ed1c2
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
From be12a69b9edfbbb091450a42a4408bc5579d1d27 Mon Sep 17 00:00:00 2001
|
||||
From af37cc621e7a0c460240cc01049a10531f685e38 Mon Sep 17 00:00:00 2001
|
||||
From: Qian Hong <qhong@codeweavers.com>
|
||||
Date: Sun, 26 Jul 2015 17:55:01 +0800
|
||||
Subject: kernel32: Fallback to default comspec when %COMSPEC% is not set.
|
||||
Subject: [PATCH] kernel32: Fallback to default comspec when %COMSPEC% is not
|
||||
set.
|
||||
|
||||
---
|
||||
dlls/kernel32/process.c | 6 +++++-
|
||||
@@ -9,17 +10,18 @@ Subject: kernel32: Fallback to default comspec when %COMSPEC% is not set.
|
||||
2 files changed, 15 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/dlls/kernel32/process.c b/dlls/kernel32/process.c
|
||||
index b0c06e3..caa005c 100644
|
||||
index 91d242e..2075dfd 100644
|
||||
--- a/dlls/kernel32/process.c
|
||||
+++ b/dlls/kernel32/process.c
|
||||
@@ -2174,13 +2174,17 @@ static BOOL create_cmd_process( LPCWSTR filename, LPWSTR cmd_line, LPVOID env, L
|
||||
@@ -2323,6 +2323,7 @@ static BOOL create_cmd_process( LPCWSTR filename, LPWSTR cmd_line, LPVOID env, L
|
||||
|
||||
{
|
||||
static const WCHAR comspecW[] = {'C','O','M','S','P','E','C',0};
|
||||
+ static const WCHAR cmdW[] = {'\\','c','m','d','.','e','x','e',0};
|
||||
static const WCHAR slashcW[] = {' ','/','c',' ',0};
|
||||
static const WCHAR slashscW[] = {' ','/','s','/','c',' ',0};
|
||||
static const WCHAR quotW[] = {'"',0};
|
||||
WCHAR comspec[MAX_PATH];
|
||||
WCHAR *newcmdline;
|
||||
@@ -2330,7 +2331,10 @@ static BOOL create_cmd_process( LPCWSTR filename, LPWSTR cmd_line, LPVOID env, L
|
||||
BOOL ret;
|
||||
|
||||
if (!GetEnvironmentVariableW( comspecW, comspec, sizeof(comspec)/sizeof(WCHAR) ))
|
||||
@@ -29,13 +31,13 @@ index b0c06e3..caa005c 100644
|
||||
+ strcatW( comspec, cmdW );
|
||||
+ }
|
||||
if (!(newcmdline = HeapAlloc( GetProcessHeap(), 0,
|
||||
(strlenW(comspec) + 4 + strlenW(cmd_line) + 1) * sizeof(WCHAR))))
|
||||
(strlenW(comspec) + 7 + strlenW(cmd_line) + 2) * sizeof(WCHAR))))
|
||||
return FALSE;
|
||||
diff --git a/programs/cmd/wcmdmain.c b/programs/cmd/wcmdmain.c
|
||||
index 7666329..b0ec82f 100644
|
||||
index 827ddd2..9feac1a 100644
|
||||
--- a/programs/cmd/wcmdmain.c
|
||||
+++ b/programs/cmd/wcmdmain.c
|
||||
@@ -2340,10 +2340,20 @@ int wmain (int argc, WCHAR *argvW[])
|
||||
@@ -2343,10 +2343,20 @@ int wmain (int argc, WCHAR *argvW[])
|
||||
static const WCHAR offW[] = {'O','F','F','\0'};
|
||||
static const WCHAR promptW[] = {'P','R','O','M','P','T','\0'};
|
||||
static const WCHAR defaultpromptW[] = {'$','P','$','G','\0'};
|
||||
@@ -57,5 +59,5 @@ index 7666329..b0ec82f 100644
|
||||
|
||||
/* Get the windows version being emulated */
|
||||
--
|
||||
2.5.0
|
||||
1.9.1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user