You've already forked wine-staging
mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2025-04-13 14:42:51 -07:00
Fix issue in user32-WndProc patch which caused crashes for some 16-bit apps.
This commit is contained in:
@@ -1,14 +1,28 @@
|
||||
From a857ce50c5f1e48d7c08c034374b742292d18344 Mon Sep 17 00:00:00 2001
|
||||
From f45183ad9d9ac42023f1222a58c1ebb45f0b6ba6 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.
|
||||
Subject: user32: Increase MAX_WINPROCS to 16384. (try 2)
|
||||
|
||||
---
|
||||
dlls/user32/winproc.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
dlls/user.exe16/message.c | 2 +-
|
||||
dlls/user32/winproc.c | 2 +-
|
||||
2 files changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/dlls/user.exe16/message.c b/dlls/user.exe16/message.c
|
||||
index 935b025..965da59 100644
|
||||
--- a/dlls/user.exe16/message.c
|
||||
+++ b/dlls/user.exe16/message.c
|
||||
@@ -108,7 +108,7 @@ typedef struct
|
||||
#include "poppack.h"
|
||||
|
||||
#define WINPROC_HANDLE (~0u >> 16)
|
||||
-#define MAX_WINPROCS32 4096
|
||||
+#define MAX_WINPROCS32 16384
|
||||
#define MAX_WINPROCS16 1024
|
||||
|
||||
static WNDPROC16 winproc16_array[MAX_WINPROCS16];
|
||||
diff --git a/dlls/user32/winproc.c b/dlls/user32/winproc.c
|
||||
index 57adfc2..e18dd5e 100644
|
||||
index 3642109..828729b 100644
|
||||
--- a/dlls/user32/winproc.c
|
||||
+++ b/dlls/user32/winproc.c
|
||||
@@ -45,7 +45,7 @@ typedef struct tagWINDOWPROC
|
||||
@@ -21,5 +35,5 @@ index 57adfc2..e18dd5e 100644
|
||||
#define WINPROC_PROC16 ((WINDOWPROC *)1) /* placeholder for 16-bit window procs */
|
||||
|
||||
--
|
||||
1.7.9.5
|
||||
2.1.3
|
||||
|
||||
|
Reference in New Issue
Block a user