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
Added patch to increase wineconsole commandline buffer size.
This commit is contained in:
@@ -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:
|
||||
|
@@ -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
|
||||
|
1
patches/wineconsole-Buffer_Size/definition
Normal file
1
patches/wineconsole-Buffer_Size/definition
Normal file
@@ -0,0 +1 @@
|
||||
Fixes: [34814] Increase wineconsole commandline buffer size
|
Reference in New Issue
Block a user