Module: wine
Branch: master
Commit: 565a5715468fa990cf9e7cbfe38ac59ddcde1e76
URL: http://source.winehq.org/git/wine.git/?a=commit;h=565a5715468fa990cf9e7cbfe…
Author: Józef Kucia <jkucia(a)codeweavers.com>
Date: Fri Mar 11 13:28:03 2016 +0100
wined3d: Limit amount of video memory for older Windows versions.
This should affect only 32-bit applications when the emulated Windows
version is set to "Windows 2003" or older.
Signed-off-by: Józef Kucia <jkucia(a)codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet(a)codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
dlls/wined3d/directx.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c
index 60fb5ac..1aea568 100644
--- a/dlls/wined3d/directx.c
+++ b/dlls/wined3d/directx.c
@@ -1510,6 +1510,18 @@ static void init_driver_info(struct wined3d_driver_info *driver_info,
driver = DRIVER_UNKNOWN;
}
+ /**
+ * Diablo 2 crashes when the amount of video memory is greater than 0x7fffffff.
+ * In order to avoid this application bug we limit the amount of video memory
+ * to LONG_MAX for older Windows versions.
+ */
+ if (os_version.dwMajorVersion <= 5 && os_version.dwMinorVersion <= 2
+ && driver_info->vram_bytes > LONG_MAX)
+ {
+ TRACE("Limiting amount of video memory to %#lx bytes for OS version older than Vista.\n", LONG_MAX);
+ driver_info->vram_bytes = LONG_MAX;
+ }
+
if (wined3d_settings.emulated_textureram)
{
TRACE("Overriding amount of video memory with 0x%s bytes.\n",
Module: tools
Branch: master
Commit: 0f24742aa6f0e94e7994f769de8ed40dd633bbd3
URL: http://source.winehq.org/git/tools.git/?a=commit;h=0f24742aa6f0e94e7994f769…
Author: Francois Gouget <fgouget(a)free.fr>
Date: Mon Mar 14 00:09:36 2016 +0100
testbot/TestAgent: Set the connection Step before entering the eval section.
This is mostly useful in case there is a syntax error in the eval section.
Signed-off-by: Francois Gouget <fgouget(a)free.fr>
Signed-off-by: Alexandre Julliard <julliard(a)winehq.org>
---
testbot/lib/WineTestBot/TestAgent.pm | 1 +
1 file changed, 1 insertion(+)
diff --git a/testbot/lib/WineTestBot/TestAgent.pm b/testbot/lib/WineTestBot/TestAgent.pm
index 5d03a18..9d372ad 100644
--- a/testbot/lib/WineTestBot/TestAgent.pm
+++ b/testbot/lib/WineTestBot/TestAgent.pm
@@ -865,6 +865,7 @@ sub _Connect($)
my $Step;
foreach my $Dummy (1..$self->{cattempts})
{
+ my $Step = "initializing";
eval
{
local $SIG{ALRM} = sub { die "timeout" };