Add patch for linker version in PE header.

This commit is contained in:
Michael Müller
2014-08-21 06:01:23 +02:00
committed by Erich E. Hoover
parent fa92b283ed
commit 6fa663e823
4 changed files with 51 additions and 0 deletions

View File

@@ -52,6 +52,7 @@ PATCHLIST := \
user32-GetTipText.ok \
user32-WndProc.ok \
wineboot-HKEY_DYN_DATA.ok \
winebuild-LinkerVersion.ok \
winepulse-PulseAudio_Support.ok \
winex11-Limited_Resolutions.ok \
winex11-Window_Groups.ok \
@@ -933,6 +934,24 @@ wineboot-HKEY_DYN_DATA.ok:
echo '+ { "wineboot-HKEY_DYN_DATA", "Michael Müller", "Add some generic hardware in HKEY_DYN_DATA\\\\Config Manager\\\\Enum." },'; \
) > wineboot-HKEY_DYN_DATA.ok
# Patchset winebuild-LinkerVersion
# |
# | Included patches:
# | * Set a valid major and minor linker version in the PE header. [by Michael Müller]
# |
# | This patchset fixes the following Wine bugs:
# | * [#28768] Games For Windows Live 1.x expects a valid linker version in the PE header
# |
# | Modified files:
# | * tools/winebuild/spec32.c
# |
.INTERMEDIATE: winebuild-LinkerVersion.ok
winebuild-LinkerVersion.ok:
$(call APPLY_FILE,winebuild-LinkerVersion/0001-winebuild-Set-a-valid-major-and-minor-linker-version.patch)
@( \
echo '+ { "winebuild-LinkerVersion", "Michael Müller", "Set a valid major and minor linker version in the PE header." },'; \
) > winebuild-LinkerVersion.ok
# Patchset winepulse-PulseAudio_Support
# |
# | Included patches:

View File

@@ -0,0 +1,27 @@
From 879f9aff357d593c169f2b59728de63792ec7f00 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Michael=20M=C3=BCller?= <michael@fds-team.de>
Date: Thu, 21 Aug 2014 05:57:24 +0200
Subject: winebuild: Set a valid major and minor linker version
---
tools/winebuild/spec32.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/winebuild/spec32.c b/tools/winebuild/spec32.c
index 35fe144..c2a3675 100644
--- a/tools/winebuild/spec32.c
+++ b/tools/winebuild/spec32.c
@@ -529,8 +529,8 @@ void output_module( DLLSPEC *spec )
spec->characteristics );
output( "\t.short 0x%04x\n", /* Magic */
get_ptr_size() == 8 ? IMAGE_NT_OPTIONAL_HDR64_MAGIC : IMAGE_NT_OPTIONAL_HDR32_MAGIC );
- output( "\t.byte 0\n" ); /* MajorLinkerVersion */
- output( "\t.byte 0\n" ); /* MinorLinkerVersion */
+ output( "\t.byte 7\n" ); /* MajorLinkerVersion */
+ output( "\t.byte 10\n" ); /* MinorLinkerVersion */
output( "\t.long 0\n" ); /* SizeOfCode */
output( "\t.long 0\n" ); /* SizeOfInitializedData */
output( "\t.long 0\n" ); /* SizeOfUninitializedData */
--
1.9.1

View File

@@ -0,0 +1,4 @@
Author: Michael Müller
Subject: Set a valid major and minor linker version in the PE header.
Revision: 1
Fixes: [28768] Games For Windows Live 1.x expects a valid linker version in the PE header