Added patch to increase wineconsole commandline buffer size.

This commit is contained in:
Sebastian Lackner
2015-03-04 21:19:13 +01:00
parent e7b99e4558
commit e3616aa15c
5 changed files with 48 additions and 1 deletions

View File

@@ -198,6 +198,7 @@ patch_enable_all ()
enable_wineboot_HKEY_DYN_DATA="$1"
enable_winebuild_LinkerVersion="$1"
enable_winecfg_Staging="$1"
enable_wineconsole_Buffer_Size="$1"
enable_wined3d_CSMT_Helper="$1"
enable_wined3d_CSMT_Main="$1"
enable_wined3d_DXTn="$1"
@@ -634,6 +635,9 @@ patch_enable ()
winecfg-Staging)
enable_winecfg_Staging="$2"
;;
wineconsole-Buffer_Size)
enable_wineconsole_Buffer_Size="$2"
;;
wined3d-CSMT_Helper)
enable_wined3d_CSMT_Helper="$2"
;;
@@ -3973,6 +3977,21 @@ if test "$enable_winebuild_LinkerVersion" -eq 1; then
) >> "$patchlist"
fi
# Patchset wineconsole-Buffer_Size
# |
# | This patchset fixes the following Wine bugs:
# | * [#34814] Increase wineconsole commandline buffer size
# |
# | Modified files:
# | * programs/wineconsole/wineconsole.c
# |
if test "$enable_wineconsole_Buffer_Size" -eq 1; then
patch_apply wineconsole-Buffer_Size/0001-wineconsole-Increase-buffer-to-allow-larger-commandl.patch
(
echo '+ { "Sebastian Lackner", "wineconsole: Increase buffer to allow larger commandline strings.", 1 },';
) >> "$patchlist"
fi
# Patchset winedevice-Fix_Relocation
# |
# | This patchset fixes the following Wine bugs:

View File

@@ -0,0 +1,25 @@
From a98938b7cea50114a55f24e608581dc27eac9cab Mon Sep 17 00:00:00 2001
From: Sebastian Lackner <sebastian@fds-team.de>
Date: Wed, 4 Mar 2015 21:16:58 +0100
Subject: wineconsole: Increase buffer to allow larger commandline strings.
---
programs/wineconsole/wineconsole.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/programs/wineconsole/wineconsole.c b/programs/wineconsole/wineconsole.c
index 3c2faf5..038b360 100644
--- a/programs/wineconsole/wineconsole.c
+++ b/programs/wineconsole/wineconsole.c
@@ -830,7 +830,7 @@ int PASCAL WinMain(HINSTANCE hInst, HINSTANCE hPrev, LPSTR lpCmdLine, INT nCmdSh
break;
case from_process_name:
{
- WCHAR buffer[256];
+ static WCHAR buffer[4096];
MultiByteToWideChar(CP_ACP, 0, wci.ptr, -1, buffer, sizeof(buffer) / sizeof(buffer[0]));
--
2.3.0

View File

@@ -0,0 +1 @@
Fixes: [34814] Increase wineconsole commandline buffer size