Added patch to workaround programs leaking wndproc slots.

This commit is contained in:
Sebastian Lackner
2014-08-08 23:46:26 +02:00
parent 2403b551ea
commit e54f90dd30
5 changed files with 51 additions and 0 deletions

View File

@@ -39,6 +39,7 @@ PATCHLIST := Miscellaneous.ok \
shlwapi-UrlCombine.ok \
user32-GetSystemMetrics.ok \
user32-GetTipText.ok \
user32-WndProc.ok \
wineboot-HKEY_DYN_DATA.ok \
winepulse-PulseAudio_Support.ok \
winex11-XEMBED.ok \
@@ -712,6 +713,25 @@ user32-GetTipText.ok:
echo '+ { "user32-GetTipText", "Erich E. Hoover", "Handle TOOLTIPS_GetTipText edge cases." },'; \
) > user32-GetTipText.ok
# Patchset user32-WndProc
# |
# | Included patches:
# | * Workaround for programs leaking wndproc splots. [by Sebastian Lackner]
# |
# | This patchset fixes the following Wine bugs:
# | * [#32451] Multiple GOG.com installer bundles show a broken/unresponsive dialog window during installation (installer
# | process running out of wndproc slots)
# |
# | Modified files:
# | * dlls/user32/winproc.c
# |
.INTERMEDIATE: user32-WndProc.ok
user32-WndProc.ok:
$(PATCH) < user32-WndProc/0001-user32-Increase-MAX_WINPROCS-to-16384.patch
@( \
echo '+ { "user32-WndProc", "Sebastian Lackner", "Workaround for programs leaking wndproc splots." },'; \
) > user32-WndProc.ok
# Patchset wineboot-HKEY_DYN_DATA
# |
# | Included patches:

View File

@@ -0,0 +1,25 @@
From a857ce50c5f1e48d7c08c034374b742292d18344 Mon Sep 17 00:00:00 2001
From: Sebastian Lackner <sebastian@fds-team.de>
Date: Fri, 8 Aug 2014 23:40:58 +0200
Subject: user32: Increase MAX_WINPROCS to 16384.
---
dlls/user32/winproc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/user32/winproc.c b/dlls/user32/winproc.c
index 57adfc2..e18dd5e 100644
--- a/dlls/user32/winproc.c
+++ b/dlls/user32/winproc.c
@@ -45,7 +45,7 @@ typedef struct tagWINDOWPROC
WNDPROC procW; /* Unicode window proc */
} WINDOWPROC;
-#define MAX_WINPROCS 4096
+#define MAX_WINPROCS 16384
#define MAX_WINPROC_RECURSION 64
#define WINPROC_PROC16 ((WINDOWPROC *)1) /* placeholder for 16-bit window procs */
--
1.7.9.5

View File

@@ -0,0 +1,4 @@
Author: Sebastian Lackner
Subject: Workaround for programs leaking wndproc splots.
Revision: 1
Fixes: [32451] Fix for programs leaking wndproc slots