Removed patch to fix uninitialized cch member in GetMenuItemInfo (accepted upstream).

This commit is contained in:
Sebastian Lackner
2014-09-09 22:47:34 +02:00
parent 5ba46f55f2
commit 4fb2477927
5 changed files with 2 additions and 55 deletions

View File

@@ -62,7 +62,6 @@ PATCHLIST := \
shell32-RunDLL_CallEntry16.ok \
shell32-SHCreateSessionKey.ok \
shlwapi-UrlCombine.ok \
user32-GetMenuItemInfo.ok \
user32-GetSystemMetrics.ok \
user32-GetTipText.ok \
user32-WndProc.ok \
@@ -972,24 +971,6 @@ shlwapi-UrlCombine.ok:
echo '+ { "shlwapi-UrlCombine", "Sebastian Lackner", "Workaround for broken implementation of shlwapi url functions." },'; \
) > shlwapi-UrlCombine.ok
# Patchset user32-GetMenuItemInfo
# |
# | Included patches:
# | * Also set cch member in GetMenuItemInfo when passing a null pointer. [by Michael Müller]
# |
# | This patchset fixes the following Wine bugs:
# | * [#34642] Fix unitialized cch value when calling GetMenuItemInfo with a null pointer
# |
# | Modified files:
# | * dlls/user32/menu.c
# |
.INTERMEDIATE: user32-GetMenuItemInfo.ok
user32-GetMenuItemInfo.ok:
$(call APPLY_FILE,user32-GetMenuItemInfo/0001-user32-Also-set-cch-member-in-GetMenuItemInfo-when-p.patch)
@( \
echo '+ { "user32-GetMenuItemInfo", "Michael Müller", "Also set cch member in GetMenuItemInfo when passing a null pointer." },'; \
) > user32-GetMenuItemInfo.ok
# Patchset user32-GetSystemMetrics
# |
# | Included patches:

View File

@@ -1,31 +0,0 @@
From c91c8456d92e0761f0b6df345c4547b54db63d86 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Michael=20M=C3=BCller?= <michael@fds-team.de>
Date: Sun, 7 Sep 2014 20:14:36 +0200
Subject: user32: Also set cch member in GetMenuItemInfo when passing a null
pointer.
---
dlls/user32/menu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/user32/menu.c b/dlls/user32/menu.c
index 93bee49..9e05dd4 100644
--- a/dlls/user32/menu.c
+++ b/dlls/user32/menu.c
@@ -4583,12 +4583,12 @@ static BOOL GetMenuItemInfo_common ( HMENU hmenu, UINT item, BOOL bypos,
if ((lpmii->fMask & (MIIM_TYPE|MIIM_STRING))) {
if( !menu->text ) {
if(lpmii->dwTypeData && lpmii->cch) {
- lpmii->cch = 0;
if( unicode)
*((WCHAR *)lpmii->dwTypeData) = 0;
else
*((CHAR *)lpmii->dwTypeData) = 0;
}
+ lpmii->cch = 0;
} else {
int len;
if (unicode)
--
1.9.1

View File

@@ -1,4 +0,0 @@
Author: Michael Müller
Subject: Also set cch member in GetMenuItemInfo when passing a null pointer.
Revision: 1
Fixes: [34642] Fix unitialized cch value when calling GetMenuItemInfo with a null pointer